M
Size: a a a
M
M
Ю
W
n
n
Function Timer {
switch ($args) {
on {$Global:StartMs=Get-Date}
off {
$EndMs=Get-Date
Write-Host "Exec time: $([math]::Round(($EndMs-$StartMs).TotalSeconds,3)) sec"
}
off2 {
$EndMs=Get-Date
Write-Host "Exec time: $([math]::Round(($EndMs-$StartMs).TotalSeconds,3)) sec"
}
off3 {
$EndMs=Get-Date
Write-Host "Exec time: $([math]::Round(($EndMs-$StartMs).TotalSeconds,3)) sec"
}
}
}
VB
Function Timer {
switch ($args) {
on {$Global:StartMs=Get-Date}
off {
$EndMs=Get-Date
Write-Host "Exec time: $([math]::Round(($EndMs-$StartMs).TotalSeconds,3)) sec"
}
off2 {
$EndMs=Get-Date
Write-Host "Exec time: $([math]::Round(($EndMs-$StartMs).TotalSeconds,3)) sec"
}
off3 {
$EndMs=Get-Date
Write-Host "Exec time: $([math]::Round(($EndMs-$StartMs).TotalSeconds,3)) sec"
}
}
}
n
-
B
V
VP
VP
VP
VP
VP
VP
VP