Details
-
Bug
-
Resolution: Invalid
-
P4: Low
-
None
-
4.6.3
-
None
-
Windows XP VM
Windows 7 native
Qt SDK 2010.04 Windows (4.6.3)
Description
The QDateTime::currentDateTime() function misses exact time resolution on windows os.
The Time output from the following code jumps by 15/16 ms on windows.
for(int i = 0; i < 100; i++) { qDebug() << QDateTime::currentDateTime().toString( "dd.MM hh:mm:ss zzz" ); }
Output on Windows:
[...]
"20.04 14:40:21 751"
"20.04 14:40:21 751"
"20.04 14:40:21 766"
"20.04 14:40:21 766"
[...]
"20.04 14:40:21 766"
"20.04 14:40:21 766"
"20.04 14:40:21 782"
"20.04 14:40:21 782"
[...]
Under Linux (Qt 4.6.3) it works as expected with one ms difference.