HPlogo MPE/iX Intrinsics Reference Manual > Chapter 10 Command Definitions (QUIT-ZSIZE)

TIMER

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM and CM callable.

Returns system timer information.

Syntax



  I32
  count := TIMER;

Functional Return


count

32-bit signed integer (assigned functional return)

The actual millisecond count since the midnight preceding the last system coldload.

Operation Notes


The resolution of the system timer is one millisecond; readings taken within a one-millisecond period can be identical. The system timer is reset to zero every 24-days at 12:00 midnight. If using the TIMER intrinsic to compute elapsed time, correct for this condition by:
  • Subtracting the current count from the previous count.

  • If the result is negative, add 2,073,600,000 (number of milliseconds in 24 days).

    2073600000

Related Information


Intrinsics
Manuals




TERMINATE


UNLOADPROC