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
TIMER = 0
WHILE (wait for something to happen)
PRINT "That took "; TIMER; " microseconds"
Differences from other BASICs
- no equivalent in PBASIC
- no equivalent in Visual BASIC