Should use CLOCK_MONOTONIC

Bug #1708650 reported by Paul "LeoNerd" Evans on 2017-08-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libtickit
Low
Unassigned

Bug Description

In summary, see:

https://blog.habets.se/2010/09/gettimeofday-should-never-be-used-to-measure-time.html

Basically we should be using clock_gettime(CLOCK_MONOTONIC,...) rather than gettimeofday(). This needs looking into for portability reasons. Also, the fact it would be using the nsec-resolution 'struct timespec' instead of the µsec-resolution 'struct timeval'. Might need to create a whole *new* set of time-handling functions. Hmm.

Changed in libtickit:
status: New → Confirmed
importance: Undecided → Low
milestone: none → v0.3
Changed in libtickit:
milestone: v0.3 → v0.4
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers