Measuring duration of commands on Windows 10

From Andreida

Create a test.cmd

@echo off
echo %time%
pause Put here the line(s) you want do be measured, instead of the current line. 
echo %time%

Output:

>test
0:45:30,44
Press any key to continue . . .
0:45:33,23