Linux 下的 time 命令可以獲取命令執行時間
[plain]
@echo off
set /a StartMS=%time:~
%
set /a EndMS =%time:~
set /a realtime = %EndMS%
echo %realtime%ms
這是執行的例子
[plain]
F:\BAK>time
PHP version
Found
F:\BAK>time
PHP version
Found
F:\BAK>time
PHP version
Found
From:http://tw.wingwit.com/Article/os/xtgl/201311/8706.html