[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson