microsecond WAIT

Questions about the BASICtools and MakeItC
Post Reply
YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

microsecond WAIT

Post by YahooArchive »

>from the help line
>Is there a way to use WAIT with microseconds? If not, I would like to request
this function as it would be handy. Is there another way to do this easily?

There are examples of this in the BASIC libraries, where it is normally done in
line using the builtin TIMER.

START = TIMER
WHILE (TIMER-START < numOfMicroseconds)
LOOP

It could be done as a SUB

SUB WAIT_USECONDS (numOfMicroseconds)
DIM START
START = TIMER
WHILE (TIMER-START < numOfMicroseconds)
LOOP
END SUB



Post Reply