Should use CLOCK_MONOTONIC

Bug #1708650 reported by Paul "LeoNerd" Evans
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libtickit
Confirmed
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.