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

Measure wall time in ping tests #269

Merged
merged 4 commits into from
Oct 26, 2023

Conversation

jean-roland
Copy link
Contributor

Ping tests were measuring CPU time where what was needed was wall time. Additional bonus, using the zenoh defined primitives ensures better system compatibility.

Copy link
Member

@cguimaraes cguimaraes left a 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.

examples/unix/c11/z_ping.c Outdated Show resolved Hide resolved
Copy link
Member

@cguimaraes cguimaraes left a 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.

@Mallets
Copy link
Member

Mallets commented Oct 26, 2023

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.

@Mallets Mallets merged commit 995f082 into eclipse-zenoh:master Oct 26, 2023
27 checks passed
@jean-roland jean-roland deleted the fix_ping_tests branch October 31, 2023 10:10
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.

None yet

3 participants