Page MenuHomeFreeBSD

ping: Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC)
ClosedPublic

Authored by jansucan on Aug 13 2019, 8:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 21 2024, 5:20 PM
Unknown Object (File)
Oct 25 2024, 12:53 PM
Unknown Object (File)
Oct 4 2024, 3:50 AM
Unknown Object (File)
Oct 3 2024, 7:33 PM
Unknown Object (File)
Sep 30 2024, 7:56 PM
Unknown Object (File)
Sep 18 2024, 9:08 AM
Unknown Object (File)
Sep 11 2024, 5:41 AM
Unknown Object (File)
Sep 9 2024, 11:22 PM
Subscribers

Details

Summary

Replace gettimeofday() with clock_gettime(CLOCK_MONOTONIC)

Submitted by: Ján Sučan <sucanjan@gmail.com>
Sponsored by: Google, inc. (Google Summer of Code 2019)

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25845
Build 24416: arc lint + arc unit

Event Timeline

asomers requested changes to this revision.Aug 13 2019, 3:07 PM
asomers added inline comments.
sbin/ping/ping.c
894–895

These 10 lines can be replaced by timespecadd

This revision now requires changes to proceed.Aug 13 2019, 3:07 PM

Use timespecadd(), and timespecsub().

sbin/ping/ping.c
894–895

Fixed.

This revision is now accepted and ready to land.Aug 13 2019, 7:24 PM
This revision was automatically updated to reflect the committed changes.