invoke ticcount
invoke wsprintf, ADDR buftime, ADDR szformat, eax
invoke MessageBox,0,ADDR buftime, ADDR mytitle,MB_OK
invoke ExitProcess, 0
I ran across this RDSTC opcode would it be better to use it instead of the above &
which would save processor time. Want to use it for timing the speed of graphics movements from start to finish. Or is there a faster way to time it
your thoughts are greatly appriecated thanks in advance:alright:
I think RDTSC can be used only in ring0
that's not true. i wrote an app using rdtsc causing no faults.
save processor time with a messagebox?
use it like this:
save processor time with a messagebox?
use it like this:
rdtsc
mov [tmpval],eax
;your code to test
rdtsc
sub eax,[tmpval]
;print the value eax somewhere
You are right. The old msdos with emm386 created problem but win2k is ok
Check this link for informations, if is possible to use RDTSC without generating #UD (undefined opcode) under all of Windows:
http://spasm.servehttp.com/SpAsm/viewtopic.php?t=480
In a short cut, resume is there is possible to use RDTSC without problems. The best would be set up your own SEH for trap fault #UD.
http://spasm.servehttp.com/SpAsm/viewtopic.php?t=480
In a short cut, resume is there is possible to use RDTSC without problems. The best would be set up your own SEH for trap fault #UD.