Scripting/Squirrel/Client Functions/Script::GetTicks

From Vice City Multiplayer
Revision as of 04:57, 14 July 2016 by Xmair (talk | contribs) (Created page with "This function returns a number of milliseconds since the computer started. Can be used to measure time intervals. == Syntax == <pre>None.</pre> == Arguments == * None. ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
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

None.

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::ScriptLoad was used in in this example. More info about them in the corresponding pages.