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

Use process.hrtime to calculate the request duration #4

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

capella
Copy link
Contributor

@capella capella commented Oct 7, 2019

The javascript new Date() doesn't provide enough resolution under the milliseconds.
This PR change how the time is mesure from an integer to a float with more resolution.

Copy link
Contributor

@cscatolini cscatolini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@capella
Copy link
Contributor Author

capella commented Oct 8, 2019

Can you merge it? I don't have permission to do it.

@cscatolini cscatolini merged commit d551070 into topfreegames:master Oct 8, 2019
@cscatolini
Copy link
Contributor

Done! I'll give you permission @capella

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

Successfully merging this pull request may close these issues.

2 participants