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
writeOutput( getTickCount() );
A simple timer
Outputs the millisecond difference between a starting point and end point
start = getTickCount();
sleep( 1000 );
writeOutput( getTickCount() - start );
Result: 1000 (note: may be off by a few ms depending on the environment)
Additional Examples
writeDump( label="getTickCount (milli/default)", var=getTickCount() );
writeDump( label="nano", var=getTickCount( "nano" ) );
writeDump( label="second", var=getTickCount( "second" ) );
Related
Last updated
Was this helpful?