-
Notifications
You must be signed in to change notification settings - Fork 81
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
Measure wall time in ping tests #269
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with small comments.
651294c
to
2a56883
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest changes LGTM, but it would be worth to see if this is also correct for Windows platform. For windows, both z_time
and z_clock
primitives use the same set of system APIs.
And for MBed, if there is any existing API that we missed in the past.
For Windows, in Rust they base the clock implementation on QueryPerformanceCounter. We might think about updating the Windows port to that but I'd leave it as a new PR. |
Ping tests were measuring CPU time where what was needed was wall time. Additional bonus, using the zenoh defined primitives ensures better system compatibility.