fix time benchmark in build script

This commit is contained in:
Ondřej Samohel 2021-05-18 15:24:27 +02:00
parent 7c8661bc2d
commit cd76b6d1f4
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -164,7 +164,7 @@ Write-Host "OK" -ForegroundColor green
Write-Host ">>> " -NoNewline -ForegroundColor green
Write-Host "Building OpenPype ..."
$startTime = (Get-Date).Millisecond
$startTime = [int][double]::Parse((Get-Date -UFormat %s))
$out = & poetry run python setup.py build 2>&1
if ($LASTEXITCODE -ne 0)
@ -183,7 +183,7 @@ Write-Host ">>> " -NoNewline -ForegroundColor green
Write-Host "restoring current directory"
Set-Location -Path $current_dir
$endTime = (Get-Date).Millisecond
$endTime = [int][double]::Parse((Get-Date -UFormat %s))
Write-Host "*** " -NoNewline -ForegroundColor Cyan
Write-Host "All done in $($endTime - $startTime) secs. You will find OpenPype and build log in " -NoNewLine
Write-Host "'.\build'" -NoNewline -ForegroundColor Green