Scripting/Squirrel/Client Functions/Script::GetTicks

From Vice City Multiplayer
Revision as of 04:02, 23 July 2016 by Ysc3839 (talk | contribs)
(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

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.