From: Alexandre Ferrieux on
On May 12, 5:36 pm, Jens Haines <bubblegumtr...(a)arcor.de> wrote:
> Am 12.05.2010 10:11, schrieb Alexandre Ferrieux:
>
>
>
> > One thing I fail to understand here is why you completely drop the
> > usleep()-like call for a busy loop, based on the absence of a proper
> > time-reading function.
> > These things are orthogonal: you might very well have a precise
> > sleeper and a less precise time-reader (who knows).
> > Granted, your sleep will be "blind" and drifting, but still more
> > efficient than a busy loop.
>
> > -Alex
>
> Hi Alex,
>
> I could not find an equivalent of usleep in twapi and I'm not very
> familiar with using Ffidl. The usleep approach seems to be the way to go
> if you want to get a real microsecond delay.
>
> I needed to get the program to work quickly though, so I decided to use
> the quick and dirty method with the busy loop. But thank you very much
> for your help anyway.

Argh - you're perfectly right. I keep forgetting how hopelessly
crippled Win32 is...

-Alex