実行時間の計測 - Measure-Command

PS> Measure-Command { (1..3).ForEach({ bash.exe -c 'LANG=C date' | Out-Default }) }
Fri Feb  4 10:13:11 JST 2022
Fri Feb  4 10:13:11 JST 2022
Fri Feb  4 10:13:11 JST 2022

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 0
Milliseconds      : 857
Ticks             : 8570465
TotalDays         : 9.91951967592593E-06
TotalHours        : 0.000238068472222222
TotalMinutes      : 0.0142841083333333
TotalSeconds      : 0.8570465
TotalMilliseconds : 857.0465

参考

https://docs.microsoft.com/ja-jp/powershell/module/microsoft.powershell.utility/measure-command


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2022-02-04 (金) 10:19:14