Table of contents

  1. start the low-resolution timer
  2. read the running timer
  3. stop the timer
  4. toogles start/stop
  5. read the elapsed time
  6. Example

Millisecond timer, with a resolution of 10-15ms.

start the low-resolution timer

call @timer start

read the running timer

echo !@timer!

stop the timer

call @timer stop

toogles start/stop

call @timer

read the elapsed time

echo !@timer!


call @timer start
echo Wait a little bit and press a key ...
pause > nul
call @timer stop
echo Elapsed milliseconds: !@timer!