Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output request time in milliseconds #14

Open
mjiderhamn opened this issue Apr 20, 2020 · 1 comment
Open

Output request time in milliseconds #14

mjiderhamn opened this issue Apr 20, 2020 · 1 comment

Comments

@mjiderhamn
Copy link

Currently the time of the first successful request is output in seconds. Could this be changed to milliseconds, please?

@luuksommers
Copy link
Owner

The $time.TotalSeconds should return the time in seconds with decimals. Which is the output of Measure-Command.

Invoke-WebRequest https://google.com/, try 1 / 2
Site is running in 0.3553249 seconds
Invoke-WebRequest https://google.com/, try 1 / 2
Site is running in 0.1572206 seconds
Invoke-WebRequest https://google.com/mail, try 1 / 2
Site is running in 1.2329912 seconds
Invoke-WebRequest https://google.com/, try 1 / 2
Site is running in 0.1564111 seconds

Can you confirm this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants