Skip to main content

frame_timestamp

Function frame_timestamp 

Source
pub fn frame_timestamp() -> f64
Expand description

Seconds on a monotonic clock since the first call: the frame timestamp for a backend that does not expose a native timestamp (§8.4). The origin is arbitrary. Not for the web build, where Instant is unavailable and requestAnimationFrame stamps the frame itself.