glib delays using a monotonic timer



Is it possible to use a monotonic timer with glib delays -- for instance:

g_async_queue_timed_pop
g_timeout_add

If I change the system time (Linux date command) in between when I
call the above functions, and the timer is supposed to expire, the
timer gets messed up by the system time change.  What is the best
solution to this problem?

"man clock_nanosleep" gives lots of useful information about the
differences between the REALTIME, and MONOTONIC system timers.

Thanks,
Cliff

-- 
=======================
Cliff Brake
http://bec-systems.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]