DVUI

frameTimeNS

Nanosecond timestamp for this frame.

Updated during Window.begin. Will not go backwards. Good for performance timing.

If you need to time a UI thing, consider secondsSinceLastFrame, as that will report a reasonable value even if the clock goes wrong and frameTimeNS stops advancing.

Only valid between Window.beginand Window.end.

Source

Implementation

#
pub fn frameTimeNS() i128 {
    return currentWindow().frame_time_ns;
}