Scripting/Squirrel/Client Functions/Script::GetTicks: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(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. ==...")
(No difference)

Revision as of 04:57, 14 July 2016

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.