Skip to main content

Time & Timers

Lens time, frame delta, and timeouts.

Commonly used

All APIs in this topic

Objects and data

APIDescription
clearTimeoutClears the timeout with the specified TimeoutID.
getAbsoluteStartTimeThe start time of the Lens since UNIX Epoch in seconds.
getDeltaTimeReturns the time difference in seconds between the current frame and previous frame.
getRealTimeNanosGet current time in nanoseconds.
getTimeReturns the time in seconds since the lens was started.
setTimeoutSets a timeout to call the provided callback after the specified number of milliseconds.