After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 615871 - Glib should use monotonic clock for timeouts
Glib should use monotonic clock for timeouts
Status: RESOLVED DUPLICATE of bug 540545
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal major
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-04-15 18:18 UTC by Patricia Muscalu
Modified: 2010-04-15 23:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Patricia Muscalu 2010-04-15 18:18:32 UTC
Glib's timeouts are based on real-time clock (g_get_current_time) which is not a good idea as the real time clock can be adjusted, resulting in an incorrect calculation of the elapsed time.
Generally all timer calculations should be based on a monotonic clock.

Have a look at this path:
http://gitorious.org/mer/glib2_0/commit/cc149fe934da510e95321526bbe7dce7a0580d74
Comment 1 Christian Dywan 2010-04-15 23:39:00 UTC

*** This bug has been marked as a duplicate of bug 540545 ***