diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-02-10 20:06:07 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-02-11 13:02:35 -0800 |
commit | 47cf674477473a05390df4a218fd6b3867c6e923 (patch) | |
tree | b751a30bf7ce841af16711a0e9291f1c80c699a2 /LICENSE.GPL3 | |
parent | 407d076124d42a1f4911e139ffb2d77a117ef277 (diff) |
QTimerInfo/Unix: Fix roundToMillisecond when it's already rounded
Don't add 1 ms when it's rounded to 1 ms.
Found when running unit tests on QNX, where the clock did not update
between two subsequent calls to clock_gettime().
All of this ought to be refactored to use std::chrono::nanoseconds.
Fixes: QTBUG-100438
Pick-to: 6.2 6.3
Change-Id: I47dc6426c33d3a66dec946ae3589694745ed1835
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'LICENSE.GPL3')
0 files changed, 0 insertions, 0 deletions