20.06.2014, 21:28
After having some headache with race times in linux, I realised that tickcount did not return in milliseconds.
Here's a comparison between tickcount
and GetTickCount
This only happen in linux.
Here's a comparison between tickcount
and GetTickCount
This only happen in linux.
Код:
[21:33:59] GetTickCount - 60928 [21:33:59] tickcount - 1120 [21:33:59] GetTickCount - 61131 [21:33:59] tickcount - 1120 [21:33:59] GetTickCount - 61334 [21:33:59] tickcount - 1120 [21:33:59] GetTickCount - 61538 [21:33:59] tickcount - 1120 [21:34:00] GetTickCount - 61742 [21:34:00] tickcount - 1130 [21:34:00] GetTickCount - 61946 [21:34:00] tickcount - 1130 [21:34:00] GetTickCount - 62149 [21:34:00] tickcount - 1130 [21:34:00] GetTickCount - 62352 [21:34:00] tickcount - 1130 [21:34:00] GetTickCount - 62556 [21:34:00] tickcount - 1130 [21:34:01] GetTickCount - 62760 [21:34:01] tickcount - 1140 [21:34:01] GetTickCount - 62964 [21:34:01] tickcount - 1140 [21:34:01] GetTickCount - 63167 [21:34:01] tickcount - 1140 [21:34:01] GetTickCount - 63371 [21:34:01] tickcount - 1140 [21:34:01] GetTickCount - 63574 [21:34:01] tickcount - 1140 [21:34:02] GetTickCount - 63779 [21:34:02] tickcount - 1150 [21:34:02] GetTickCount - 63984 [21:34:02] tickcount - 1150 [21:34:02] GetTickCount - 64187 [21:34:02] tickcount - 1150 [21:34:02] GetTickCount - 64390 [21:34:02] tickcount - 1150 [21:34:02] GetTickCount - 64594 [21:34:02] tickcount - 1150 [21:34:03] GetTickCount - 64800 [21:34:03] tickcount - 1150 [21:34:03] GetTickCount - 65004 [21:34:03] tickcount - 1150 [21:34:03] GetTickCount - 65207 [21:34:03] tickcount - 1160 [21:34:03] GetTickCount - 65411 [21:34:03] tickcount - 1160 [21:34:03] GetTickCount - 65614 [21:34:03] tickcount - 1160 [21:34:04] GetTickCount - 65819 [21:34:04] tickcount - 1170 [21:34:04] GetTickCount - 66022 [21:34:04] tickcount - 1170 [21:34:04] GetTickCount - 66225 [21:34:04] tickcount - 1170