Re: advice on how to detect time change



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.
.