For the complete documentation index, see llms.txt. This page is also available as Markdown.

GetTickCount

Returns the current value of an internal timer.

The unit argument controls the time unit returned.

Method Signature

GetTickCount(unit=[string])

Arguments

Argument
Type
Required
Description
Default

unit

string

false

The time unit to return. Valid values are: nano, milli (default), second.

milli

Examples

Script Syntax

Outputs the current value of the internal millisecond timer

Run Example

writeOutput( getTickCount() );

A simple timer

Outputs the millisecond difference between a starting point and end point

Run Example

Result: 1000 (note: may be off by a few ms depending on the environment)

Additional Examples

Run Example

Last updated

Was this helpful?