getTickCount

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)

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub