Re: advice on how to detect time change
- From: Dildo Bogumil di Boscopelo <psycho_78@xxxxxxxxx>
- Date: Fri, 28 Sep 2007 08:22:46 +0200
d_cymbal@xxxxxxxxxxx wrote:
Hi,
I have a requirement to detect whether the system time changes out
from under my running application via some external force (ntp update,
admin change, etc.) All I've been able to come up with so far are
brute force approaches which seem prone to error. Any ideas for a
clean way to accomplish this?
Easy! poll time every 0.5 seconds, then store it. Check if there's more than 1" difference with the last value stored. :-)
--
SF
Dildo, contro il logorio della vita moderna.
.
- Follow-Ups:
- Re: advice on how to detect time change
- From: Andrei Voropaev
- Re: advice on how to detect time change
- References:
- advice on how to detect time change
- From: d_cymbal@xxxxxxxxxxx
- advice on how to detect time change
- Prev by Date: Re: Regarding shared library and GDB
- Next by Date: Re: advice on how to detect time change
- Previous by thread: Re: advice on how to detect time change
- Next by thread: Re: advice on how to detect time change
- Index(es):