GetTimer
This function was added in DSL 5
Description
This function is not defined on the client, so the normal GetTimer
will be used instead.
On the server, this function returns how long the server has been running in milliseconds to copy the client behavior.
function GetTimer() --[[ ... ]] end
Parameters
None.
Return Values
milliseconds
:number
- The number of milliseconds since the server started.
Example
function main()
while not SystemIsReady() do
Wait(0)
end
print('Server has been running for ' .. GetTimer() .. ' milliseconds.')
end