How I can make this in ASM?
Good tutorial about exact PC timing is at
http://www.heidenstrom.gen.nz/
http://www.heidenstrom.gen.nz/
Could be possible using:
timeBeginPeriod, timeEndPeriod, QueryPerformanceCounter, Sleep(0)
Calculate number of ticks to wait for. Continue getting number of ticks and Sleep(0) in a loop till the value of passed ticks reaches the needed one. This should give timing precision up to microseconds.
timeBeginPeriod, timeEndPeriod, QueryPerformanceCounter, Sleep(0)
Calculate number of ticks to wait for. Continue getting number of ticks and Sleep(0) in a loop till the value of passed ticks reaches the needed one. This should give timing precision up to microseconds.