mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 07:53:21 +01:00
Fix stop watch
This commit is contained in:
parent
f156c432e0
commit
b90f8cc67a
@ -78,7 +78,7 @@ try {
|
||||
exit 0
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.TotalSeconds
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ built Git repository 📂$RepoDir in $Elapsed sec."
|
||||
exit 0
|
||||
} catch {
|
||||
|
@ -20,7 +20,7 @@ try {
|
||||
$Count++
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.TotalSeconds
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
write-host -foregroundColor green "✔️ built $Count Git repositories at $ParentDir in $Elapsed sec."
|
||||
exit 0
|
||||
} catch {
|
||||
|
@ -23,7 +23,7 @@ try {
|
||||
}
|
||||
$Count = $Table.Length
|
||||
|
||||
[int]$Elapsed = $StopWatch.TotalSeconds
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
$Average = [math]::round($Count / $Elapsed, 1)
|
||||
"✔️ $Average domains/s ($Count domains resolved in $Elapsed sec.)"
|
||||
exit 0
|
||||
|
@ -31,7 +31,7 @@ try {
|
||||
if ($lastExitCode -ne "0") { throw "'git clone $URL' failed" }
|
||||
$Count++
|
||||
}
|
||||
[int]$Elapsed = $StopWatch.TotalSeconds
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ cloned $Count Git repositories at 📂$ParentDir in $Elapsed sec."
|
||||
exit 0
|
||||
} catch {
|
||||
|
@ -28,7 +28,7 @@ try {
|
||||
$Count++
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.TotalSeconds
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ updated $Count Git repositories at 📂$ParentDir in $Elapsed sec."
|
||||
exit 0
|
||||
} catch {
|
||||
|
@ -30,7 +30,7 @@ try {
|
||||
$Count++
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.TotalSeconds
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ updated $Count Git repositories at 📂$ParentDir in $Elapsed sec."
|
||||
exit 0
|
||||
} catch {
|
||||
|
@ -46,7 +46,7 @@ try {
|
||||
$ftpStream.Dispose()
|
||||
$fileStream.Dispose()
|
||||
|
||||
[int]$Elapsed = $StopWatch.TotalSeconds
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ uploaded $File to $URL in $Elapsed sec."
|
||||
exit 0
|
||||
} catch {
|
||||
|
Loading…
Reference in New Issue
Block a user