Timeout timers in an application
- From: "Ed J" <jed@xxxxxxxxxxx>
- Date: Fri, 18 Jan 2008 09:27:45 -0800
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
.
- Follow-Ups:
- Re: Timeout timers in an application
- From: David Schwartz
- Re: Timeout timers in an application
- From: Rainer Weikusat
- Re: Timeout timers in an application
- Prev by Date: Re: setting enviroment variable before deamon starts
- Next by Date: Re: Timeout timers in an application
- Previous by thread: setting enviroment variable before deamon starts
- Next by thread: Re: Timeout timers in an application
- Index(es):
Relevant Pages
|