Skip to content

Commit 076489b

Browse files
committed
CreateRelease.cmd: Write the build start and end times to Build/Release/buildtime.txt.
1 parent 5fc28aa commit 076489b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CreateRelease.cmd

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
for /f %%a in ('powershell -command "Get-Date -Format HH:mm:ss.fff"') do set start=%%a
2+
13
set workdir=BuildTmp\Src
24
if "%1" == "vs2017" (
35
set vsversion=vs2017
@@ -50,3 +52,7 @@ call UploadToVirusTotal.cmd
5052

5153
popd
5254

55+
for /f %%a in ('powershell -command "Get-Date -Format HH:mm:ss.fff"') do set end=%%a
56+
for /f %%a in ('powershell -command "(New-TimeSpan -Start (Get-Date '%start%') -End (Get-Date '%end%')).TotalMilliseconds"') do set elapsed=%%a
57+
58+
echo %DATE% %start%,%end%,%elapsed%[ms] >> Build\Releases\buildtime.txt

0 commit comments

Comments
 (0)