Timing


Question

I have to write a function to access an external device. The connection is via a comport. I was told that I should wait 0,1 second after each byte that i send through the comport. The problem is that access only tells me ( now() ) whole seconds... Can someone please give me a hint to achieve this. I probably need some win-api-calls, but I haven't found them yet....

Answer

declare sub Sleep lib "kernel32" (byval dwMilliseconds as long)

HTH,
Shamil


Copyright 1999-2008 by Shamil Salakhetdinov.  All rights reserved.