Fix stop watch

This commit is contained in:
Markus Fleschutz
2021-04-21 16:20:49 +02:00
parent 26bdaf68f5
commit f156c432e0
7 changed files with 16 additions and 10 deletions

View File

@ -31,7 +31,8 @@ try {
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
$Count++
}
"✔️ cloned $Count Git repositories at 📂$ParentDir in $($StopWatch.Elapsed.Seconds) sec."
[int]$Elapsed = $StopWatch.TotalSeconds
"✔️ cloned $Count Git repositories at 📂$ParentDir in $Elapsed sec."
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"