diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-08-10 15:00:50 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-13 09:34:10 +0200 |
commit | 46e2c9441761f75f19b2780e8f1616102128dedd (patch) | |
tree | ce5fcf273299e9cd33faa28263d4553acae305c7 /src/widgets | |
parent | bc6568291a1cd01a2552ea2570b271c375b441d1 (diff) |
Make QElapsedTimer always store nanoseconds in t2
Up until now, the value stored in t2 depended on whether we had found
a monotonic clock or not. Fix that by always storing nanoseconds: we
avoid extra calculations and accessing a global variable all the time.
The impact is contained to the actual getting of the time. And we
mitigate by using clock_gettime to get the realtime clock instead of
gettimeofday, if that's available.
Change-Id: Iceef2d050fd9472f1a66e11e7ded79fe5163a132
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets')
0 files changed, 0 insertions, 0 deletions