[PowerShell]计算脚本执行时间

1. 计算脚本执行时间

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

END

原文地址:https://www.cnblogs.com/leoshi/p/15413377.html