Returns the current value of an internal millisecond timer.

getTickCount() → returns numeric

Examples sample code invoking the getTickCount function

Outputs the current value of the internal millisecond timer

writeOutput( getTickCount() )

Outputs the millisecond difference between a starting point and end point

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

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

Fork me on GitHub