-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBenchDb.Build.bat
More file actions
25 lines (16 loc) · 843 Bytes
/
BenchDb.Build.bat
File metadata and controls
25 lines (16 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@echo off
setlocal EnableDelayedExpansion
set "startTime=%time: =0%"
echo Building BenchDb.Build
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe" BenchDb.Build\BenchDb.Build.csproj /rebuild Debug
if ERRORLEVEL 1 echo ** Error %ERRORLEVEL% **
set "endTime=%time: =0%"
rem Get elapsed time:
set "end=!endTime:%time:~8,1%=%%100)*100+1!" & set "start=!startTime:%time:~8,1%=%%100)*100+1!"
set /A "elap=((((10!end:%time:~2,1%=%%100)*60+1!%%100)-((((10!start:%time:~2,1%=%%100)*60+1!%%100), elap-=(elap>>31)*24*60*60*100"
rem Convert elapsed time to HH:MM:SS:CC format:
set /A "cc=elap%%100+100,elap/=100,ss=elap%%60+100,elap/=60,mm=elap%%60+100,hh=elap/60+100"
echo Start: %startTime%
echo End: %endTime%
echo Elapsed: %hh:~1%%time:~2,1%%mm:~1%%time:~2,1%%ss:~1%%time:~8,1%%cc:~1%
pause