summaryrefslogtreecommitdiffstats
path: root/examples/dialogs/extension
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-07-23 11:21:51 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-07-23 13:20:01 (GMT)
commit9a1e0047d02fd94f92eda6cd6751bfe4cd876cd2 (patch)
tree7cd941821681f138efb1d37a8902948744182431 /examples/dialogs/extension
parent9ad53e9404889b119f26d0a7bc7c70bf93364e23 (diff)
downloadQt-9a1e0047d02fd94f92eda6cd6751bfe4cd876cd2.zip
Qt-9a1e0047d02fd94f92eda6cd6751bfe4cd876cd2.tar.gz
Qt-9a1e0047d02fd94f92eda6cd6751bfe4cd876cd2.tar.bz2
Fix time change detection on UNIX systems without monotonic timers
A few fixes in one: 1. Don't loop on select() when not using monotonic timers... when select returns, the time may have changed, and the offset calculated in the loop may be very wrong on the next iteration. 2. Calculate the elapsed time deltas using timevals instead of integers using milliseconds. This handles changing the time by more than a few hours or days (i.e. months and years) without overflow. 3. When repairing the timers, the diff is already the correct sign, so we should just add the diff. Task-number: 250681 Reviewed-by: Thiago
Diffstat (limited to 'examples/dialogs/extension')
0 files changed, 0 insertions, 0 deletions