[PowerShell]计算脚本执行时间

1. 计算脚本执行时间

$start = Get-Date
Get-HotFix
$end = Get-Date
Write-Host -ForegroundColor Red ('Total Runtime: ' + ($end - $start).TotalSeconds)

END

posted @ 2021-10-16 08:56  LeoShi2020  阅读(324)  评论(0编辑  收藏  举报