Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@toru
Copy link
Collaborator

@toru toru commented May 13, 2019

Why

To gain better insight into the event loop latency. Nanosecond granularity will be useful.

How

  • Add a now_nanosec member to h2o_evloop_t, alongside the existing now
  • Calculate now_nanosec first, and then derive now
  • For libuv, simply call the uv_hrtime function as suggested in their documentation

Extra

Rename now to now_millisec for clarity at a glance.

toru added 2 commits May 13, 2019 16:43
For clarity. Especially now that we have a now_ns variable.
Copy link
Member

@kazuho kazuho left a comment

Choose a reason for hiding this comment

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

Thank you for the PR. Looks ready to merge modulo the comments below.

@kazuho kazuho merged commit 950495e into h2o:master May 14, 2019
@kazuho
Copy link
Member

kazuho commented May 14, 2019

Thank you for the changes. Merged to master.

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