pub trait Clock {
// Required method
fn now_ms(&self) -> u64;
}Expand description
帧循环 / 动画使用的单调毫秒时钟。
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
pub trait Clock {
// Required method
fn now_ms(&self) -> u64;
}帧循环 / 动画使用的单调毫秒时钟。
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".