secondsSinceLastFrame
Seconds elapsed between last frame and current. This value can be quite high after a period with no user interaction, but won't be above ~71.5 minutes (2^32 micros).
If the underlying clock goes backwards, this will report a reasonable default value (10ms).
This is usually the right thing for UI timing. For performance timing, see
frameTimeNS.
Only valid between Window.beginand Window.end.
Source
Implementation
pub fn secondsSinceLastFrame() f32 {
return currentWindow().secs_since_last_frame;
}