flat assembler
Message board for the users of flat assembler.
Index
> Windows > GetTickCount() sub not working |
Author |
|
AsmGuru62 22 May 2013, 14:44
it is too fast!
|
|||
22 May 2013, 14:44 |
|
randomdude 22 May 2013, 14:44
maybe because the time elapsed between calling the first and second GetTickCount is less than 10 milliseconds?
Quote: The resolution of the GetTickCount function is limited to the resolution of the system timer, which is typically in the range of 10 milliseconds to 16 milliseconds. Code: include 'win32ax.inc' .code start: invoke GetTickCount mov ebx, eax invoke Sleep,1 invoke GetTickCount sub eax, ebx invoke wsprintf, _buffer, _format, eax add esp, 12 invoke MessageBox, 0, _buffer, "Test", 0 ret .end start ; .data _buffer rb 20 _format db '%u' returns 16 milliseconds |
|||
22 May 2013, 14:44 |
|
HaHaAnonymous 22 May 2013, 15:04
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 20:23; edited 1 time in total |
|||
22 May 2013, 15:04 |
|
Avenger 22 May 2013, 15:04
It's working! Thanks
|
|||
22 May 2013, 15:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.