Measure-Command { Some-Command | Out-Default } 参考 Timing a command's execution in PowerShell -- stack overflow