githubEdit

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 Examplearrow-up-right

writeOutput( getTickCount() );

A simple timer

Outputs the millisecond difference between a starting point and end point

Run Examplearrow-up-right

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

Additional Examples

Run Examplearrow-up-right

Last updated

Was this helpful?