Click to See Complete Forum and Search --> : Make a time delay < 1 ms


glanskillarna
April 20th, 1999, 07:10 AM
We use ::Sleep(x) to stop the program for x ms.
But we want to be able to stop the program with less then 1 ms delay.
(We doesn't want to use while(1)...... x++)
How should we do when we are running the program for Windows NT?
Is it possible to make a delay through BIOS commands??

rajasekar.s
April 29th, 1999, 01:48 PM
hi,

check QueryPerformanceCounter and QueryPerformanceFrequency from SDK

u can have a loop running finding the time lapse !

if ur sure of assembly write a delay routine ( u should find them in basic microprocessor books )

bye