- Documentation
- Shared functions
- getTickCount
Function
getTickCount
Returns the number of milliseconds since start (a clock that does not go back when the system time changes). For measuring intervals, subtract two values.
Syntax
int getTickCount()Returns
Milliseconds.
Example
local t = getTickCount()
-- ... ciężka praca ...
outputServerLog("Trwało " .. (getTickCount() - t) .. " ms")
See also
getRealTimeReturns the real date and time of the server (or the player's computer) as a table:second,minute,hour,monthday,month(0-11),year(years since 1900),weekday(0 = Sunday),yearday,isdstandtimestamp. With an argument it breaks down the given timestamp.setTimerCalls a function after a given time, once, several times or forever.