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

From: Shamil Salakhetdinov <shamil@marta.darts.spb.ru>
Subject: Re: Timing
Date: 22 February 1999 14:44

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

HTH,
Shamil


HOME    TOPICS

Copyright © 1999 by Shamil Salakhetdinov.
All rights reserved. Terms of use.

Last updated: June 7, 1999

Published also here at 4TOPS: Timing