Is there a built-in way to measure execution time of a command on the Windows command line?
Another approach with powershell:
@echo off for /f %%t in ('powershell "(get-date).tofiletime()"') do set mst=%%t rem some commands powershell ((get-date).tofiletime() - %mst%)
this will print the execution time in milliseconds.