Don't use PingWatch.exe.
1..4 | foreach {
$wr = Measure-Command {
Invoke-WebRequest https://www.google.com
}
"Test {0} took {1}ms." -f $_, $wr.Milliseconds
}
"The final test took {0}ms." -f $wr.Milliseconds
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I have a command that when executed only ends after (ctrl+c).
It returns like this:
C:\Temp\ping-sso>PingWatch.exe
11/14/2022 11:15:14,https://www.google.com/,OK,749ms
11/14/2022 11:15:15,https://www.google.com/,OK,190ms
11/14/2022 11:15:16,https://www.google.com/,OK,205ms
11/14/2022 11:15:17,https://www.google.com/,OK,200ms
^C
C:\Temp\ping-sso>
How do I, for example, return the fourth result which is (200)? Just the value.
Thanks.
Don't use PingWatch.exe.
1..4 | foreach {
$wr = Measure-Command {
Invoke-WebRequest https://www.google.com
}
"Test {0} took {1}ms." -f $_, $wr.Milliseconds
}
"The final test took {0}ms." -f $wr.Milliseconds