Get Clock

Signature

u64 getClock()

Description

Returns the current system time in milliseconds.

This can be used to track elapsed time, measure durations, or synchronize events.

Example

Track Elapsed Time

local startTime = event.getClock()

--your code

local endTime = event.getClock()
print("Time: " .. (endTime - startTime) / 1000 .. "ms")

Last updated