wowpedia
Main Menu


Returns a monotonic timestamp in seconds, with millisecond precision.

seconds = GetTimePreciseSec()

Returns

seconds
number - The number of seconds that have elapsed since this timer was started.

Details

Example

print("Start time:", GetTimePreciseSec());

for _ = 1, 2^26 do
    -- Busy loop to make some time pass.
end

print("End time:", GetTimePreciseSec());

> "Start time:", 0
> "End time:", 0.3624231

See also