Powershell检查网站响应并计算执行时间例子
有时候你需要知道命令的执行时间,例如,你可以使用Invoke-WebReques查看网站的响应,再使用Measure-Command计算执行的时间。复制代码 代码如下:$url = "http://www.powershell.com"# track execution time:$timeTaken = Measure-Command -Expression {$site = Invoke-WebRequest -Uri $url}$millisecon...