TIMER
 
Syntax

TIMER

Description


TIMER is a free running timer that increments every microsecond.  Its it readable and writeable using this keyword.

Operations that require more precise timing should use the dedicated hardware routines, as interupts that are occuring for other time functions and serial input may make times using TIMER look longer than actual.

Example

START = TIMER< /EM >
WHILE (TIMER-START < WAIT_MICROSECONDS)
LOOP

Differences from other BASICs

  • no equivalent in PBASIC
  • no equivalent in Visual BASIC
See also