Please enable JavaScript to view this site.

Take Command / TCC Help v. 28

@TIMER[n[,precision]] : Returns the current split time for a stopwatch started with the TIMER command. The value of n specifies the timer to read and can be 1 to 10.

 

The default @TIMER resolution is milliseconds (.001 seconds).

 

@TIMER accepts an optional second argument to return the timer split as a floating-point numeric value suitable for arithmetic. The possible values are:

 

nssplit time in nanoseconds
ussplit time in microseconds
mssplit time in milliseconds
ssplit time in seconds (3 digit decimal precision)
msplit time in minutes  (5 digit decimal precision)
hsplit time in hours  (6 digit decimal precision)

 

Examples:

 

timer /1 on

echo %@timer[1]

0:00:.02.025

 

echo %@timer[1,h]

0.01468