@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:
ns | split time in nanoseconds |
us | split time in microseconds |
ms | split time in milliseconds |
s | split time in seconds (3 digit decimal precision) |
m | split time in minutes (5 digit decimal precision) |
h | split time in hours (6 digit decimal precision) |
Examples:
timer /1 on
echo %@timer[1]
0:00:.02.025
echo %@timer[1,h]
0.01468