Timing Accurate to 1/60th Second Using PEEK or ToolBox Call (20572)
The information in this article applies to:
- Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0
- Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0a
- Microsoft QuickBASIC Compiler for the Apple Macintosh 1.0b
This article was previously published under Q20572 SUMMARY
BASIC provides a TIMER statement that is accurate to within one
second.
In Macintosh System Version 4.2 and earlier, you can PEEK a Macintosh
low memory address to obtain ticks accurate to 1/60th of a second, as
shown below.
However, because this memory location may change in the future, you
should instead call the system function TickCount using the Microsoft
QuickBASIC ToolBox statement. The ToolBox statement is only provided
in QuickBASIC for Macintosh, and is not available in earlier versions
of the BASIC Interpreter or Compiler for Macintosh.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | KB20572 |
---|
|