Timeout timers in an application



How can I implement a timeout timer in an application such that it wouldn't
be subject to a time-of-day clock adjustment? My current implementation
uses time(), etc., but since they are based on the time-of-day clock, my
code breaks if the system clock is set or adjusted while a timeout is
pending.

Drivers have access to jiffies (essentially clock tics), and that is exactly
what I need. Can I get access to jiffies or equivalent in a user
application, or is there another bullet-proof solution for user space
applications?

Thanks,

Ed


.



Relevant Pages

  • Re: Timeout timers in an application
    ... David Schwartz writes: ... be subject to a time-of-day clock adjustment? ... uses time, etc., but since they are based on the time-of-day clock, my ... code breaks if the system clock is set or adjusted while a timeout is ...
    (comp.os.linux.development.apps)
  • Re: Timeout timers in an application
    ... be subject to a time-of-day clock adjustment? ... My current implementation uses time, etc., but since they are based on the time-of-day clock, my code breaks if the system clock is set or adjusted while a timeout is pending. ... There are better things in life than alcohol, but alcohol makes up for not having them. ...
    (comp.os.linux.development.apps)