ivor 当前离线
上校
powershell "'共计时间:{0}' -f (([System.DateTime]'0:0:0') + (([System.DateTime]'%tt2%')-([System.DateTime]'%tt1%'))).GetDateTimeFormats('T')[0]"复制代码
:: 计算时间,精确到秒 @echo off color 1f set tt1=%time:~0,-3% calc.exe set tt2=%time:~0,-3% echo. echo 开始时间: %tt1% echo 结束时间: %tt2% powershell "'共计时间:{0}' -f (([System.DateTime]'0:0:0') + (([System.DateTime]'%tt2%')-([System.DateTime]'%tt1%'))).GetDateTimeFormats('T')[0]" echo. pause
TOP