1 Star 0 Fork 28

huyansong/histreamer_dev

forked from histreamer/histreamer_dev 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
local_test.bat 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
@echo off
@setlocal
set start=%time%
:: begin
call build_run.bat | tee local_test.log
if %errorlevel%==0 (
echo Local test success.
) else (
echo Local test failed.
)
set end=%time%
set options="tokens=1-4 delims=:.,"
for /f %options% %%a in ("%start%") do set start_h=%%a&set /a start_m=100%%b %% 100&set /a start_s=100%%c %% 100&set /a start_ms=100%%d %% 100
for /f %options% %%a in ("%end%") do set end_h=%%a&set /a end_m=100%%b %% 100&set /a end_s=100%%c %% 100&set /a end_ms=100%%d %% 100
set /a hours=%end_h%-%start_h%
set /a mins=%end_m%-%start_m%
set /a secs=%end_s%-%start_s%
set /a ms=%end_ms%-%start_ms%
if %ms% lss 0 set /a secs = %secs% - 1 & set /a ms = 100%ms%
if %secs% lss 0 set /a mins = %mins% - 1 & set /a secs = 60%secs%
if %mins% lss 0 set /a hours = %hours% - 1 & set /a mins = 60%mins%
if %hours% lss 0 set /a hours = 24%hours%
if 1%ms% lss 100 set ms=0%ms%
:: caculate time and output
set /a totalsecs = %hours%*3600 + %mins%*60 + %secs%
echo Total time %hours%:%mins%:%secs%.%ms% (%totalsecs%.%ms%s total)
pause
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huyanosng/histreamer_dev.git
[email protected]:huyanosng/histreamer_dev.git
huyanosng
histreamer_dev
histreamer_dev
master

搜索帮助