Statistical script execution time of bat batch processing

need:

Count the execution time of the bat script

script:

@echo off
set /a startS=%time:~6,2%
set /a startM=%time:~3,2%
echo %time%
call your.bat  
set /a endS=%time:~6,2%
set /a endM=%time:~3,2%
echo %time%
set /a diffS_=%endS%-%startS%
set /a diffM_=%endM%-%startM%
echo cost:%diffM_% %diffS_%
pause

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326089191&siteId=291194637