Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>mtimer read or set microtimer</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MTIMER                   Read or Set Microtimer

 y = MTIMER                              ' Read Microtimer
 MTIMER                                  ' Set Microtimer

    The MTIMER function reads the microtimer, returning the number of
    microseconds (millionths of a second) that have elapsed since the most
    recent MTIMER statement. Also the MTIMER statement resets the
    microtimer to 0.

   --------------------------------------------------------------------------

      Notes:    MTIMER is accurate to within about two microseconds, but
                its accuracy falls off after about 54 milliseconds (54,000
                microseconds).

                After the microtimer has been read, it must be reset (with
                a MTIMER statement) before it can be read again.

                The SOUND and PLAY statements use the same timer channel
                as MTIMER and therefore reset the microtimer to 0 elapsed
                time.

                After the microtimer has been read (with the MTIMER
                function), it must be reset (with a MTIMER statement)
                before it can be read again.

See Also: DELAY

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson