1078
Appendix A: System Routines — Timer
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
OSRegisterTimer
Declaration:
WORD
OSRegisterTimer
(WORD
TimerNode
, DWORD
InitVal
)
Category(ies):
Timer
Description:
Request a system timer. Initialize it to start counting down from
InitVal
.
Inputs:
TimerNode
— Name of the timer node being requested. Currently only
the USER timer is available for apps.
InitVal
— Number of system ticks before rollover. See tiams.h for
equates that relate system ticks to approximate time.
Outputs:
False (zero) if not successful, true (not zero) otherwise.
Assumptions:
Some useful time equates in tiams.h:
MS50 — 50 milliseconds (smallest increment).
MS100 — 100 milliseconds.
MS500 — 500 milliseconds.
ONE_SECOND — One second.
ONE_MINUTE — One minute.
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also: OSFreeTimer, OSTimerCurVal, OSTimerExpired, OSTimerRestart
Example:
See
idle
.