回复 10# gannh - @echo off
- set t1=%time%
- ::程序运行
- for /L %%i in (1,1,10000) do ver>nul
- set t2=%time%
- call :etime %t1% %t2% t
- echo %t%
- pause&exit
-
- :etime
- rem 所测试任务的执行时间不超过1天 // 骨瘦如柴版
- setlocal&set be=%~1:%~2&set cc=(%%d-%%a)*360000+(1%%e-1%%b)*6000+1%%f-1%%c&set dy=-8640000
- for /f "delims=: tokens=1-6" %%a in ("%be:.=%")do endlocal&set/a %3=%cc%,%3+=%dy%*("%3>>31")&exit/b
-
复制代码
|