Scripting/Squirrel/Client Functions/Script::GetTicks
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
This function returns a number of milliseconds since the computer started. Can be used to measure time intervals.
Syntax
int Script::GetTicks()
Arguments
- None
Return type
Integer
Example
This will message the number of milliseconds since the computer has started.
function Script::ScriptLoad()
{
Console.Print(GetTicks().tostring());
}
Notes
The event Script::GetTicks was used in in this example. More info about them in the corresponding pages.