pub struct Clock {
pub cycles: u64,
}Expand description
Master cycle counter. All timing in the emulator derives from this.
At 150 MHz, a u64 counter wraps after ~3,900 years.
The authoritative system-clock frequency lives in
[crate::bus::Bus]’s clock tree (see bus/clocks.rs). Callers who
need Hz should use emu.bus.sys_clk_hz().
Fields§
§cycles: u64Monotonically increasing system clock cycle count.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnsafeUnpin for Clock
impl UnwindSafe for Clock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more