Re: Microsecond delay in Windows?
- From: "Tom Widmer [VC++ MVP]" <tom_usenet@xxxxxxxxxxx>
- Date: Mon, 17 Jul 2006 14:31:53 +0100
Arun wrote:
"Tom Widmer [VC++ MVP]" <tom_usenet@xxxxxxxxxxx> wrote in message
news:OoTJNTmpGHA.4812@xxxxxxxxxxxxxxxxxxxxxxx
I don't think the OP said he needed 1 microsecond specifically (though
he wasn't very clear), rather the delay he wants is measured in
microseconds rather than, for example, milliseconds. It might be, e.g.
295 microseconds.
Yes! Certainly. The delay has to be as small as possible with the
possibility of recurring the delay with the same precision & accuracy!!!
The entire delay cycle may not extend to an extent so as to cause unusual
problems to the Windows-OS!
Could you precisely define what you're trying to do, and why? It's hard to suggest solutions to something as vague as this.
It seems you need some code like this:
loop
some code
a delay
end loop
From what you've said, 'a delay' has certain constraints on how long it runs, though you haven't defined those constraints (other than something about "microsecond"). Also, does 'some code' have any constraints on its running time? In effect, do you need the whole loop to take a fixed amount of time to execute (e.g. 'some code' must execute every 500us)? Can 'some code' take highly variable amount of time to execute, or does it do much the same on every loop?
Tom
.
- References:
- Microsecond delay in Windows?
- From: Arun
- Re: Microsecond delay in Windows?
- From: Matt
- Re: Microsecond delay in Windows?
- From: anton bassov
- Re: Microsecond delay in Windows?
- From: Tom Widmer [VC++ MVP]
- Re: Microsecond delay in Windows?
- From: Skywing [MVP]
- Re: Microsecond delay in Windows?
- From: anton bassov
- Re: Microsecond delay in Windows?
- From: Tom Widmer [VC++ MVP]
- Re: Microsecond delay in Windows?
- From: Arun
- Microsecond delay in Windows?
- Prev by Date: Re: Microsecond delay in Windows?
- Next by Date: Re: Question about FILE_OBJECT
- Previous by thread: Re: Microsecond delay in Windows?
- Next by thread: Re: Microsecond delay in Windows?
- Index(es):
Relevant Pages
|