返回列表 发帖
http://bbs.bathome.net/thread-63632-1-1.html
运行你的程序前,运行一下GetSec.exe,得到一个秒数,运行你的程序后再运行一下GetSec.exe,得到第二个秒数,两个秒数相差,就是你程序运行的时间。
@echo off&cd /d "%~dp0"
for /f %%s in ('GetSec.exe') do set Sec1=%%s
ping 127.1 -n 6
for /f %%s in ('GetSec.exe') do set Sec2=%%s
set /a s=%Sec2%-%Sec1%
echo.&echo;运行时间: %s%
echo.&pauseCOPY

TOP

返回列表