Format formats numbers differently on Linux than Windows
#8

[21:11:31] ticks - 430
[21:11:31] minutes - 0
[21:11:31] seconds - 0
[21:11:31] ticks left - 430

hmm. Actually it looks that tickcount (on linux ) returns 10th/s rather than milliseconds.

Can anyone else confirm that?

This is what I've got:
Код:
[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
It appears that https://sampwiki.blast.hk/wiki/Tickcount on linux is broken.
Gotta switch to GetTickCount then.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)