GetTickCount

Returns the current value of an internal millisecond timer.

Method Signature

GetTickCount()

Arguments

This function does not accept any arguments

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

start = getTickCount();
sleep( 1000 );
writeOutput( getTickCount() - start );

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

Additional Examples

Run Example

writeDump( label="getTickCount (milli/default)", var=getTickCount() );
writeDump( label="nano", var=getTickCount( "nano" ) );
writeDump( label="second", var=getTickCount( "second" ) );

Last updated

Was this helpful?