Knowledge Base

As their name implies, elapsed timers count up. There are two types of elapsed timers in SPLat:

  • System Timer
    This is a global timer that starts when the controller is turned on.  It cannot be stopped nor reset.  It is available on all controllers for both single and multi-tasking applications.
  • Task Timer
    This timer starts or restarts when the MarkTime instruction is executed.  This timer is unique in that there is one elapsed timer per task.  Tasks cannot interfere with any elapsed timer other than its own.
Note

SPLat 8 bit controllers (green boards) do not support the use of task timers if Multitrack multi-tasking is not running.  In addition, on these controllers you cannot use Pause, WaitOnT, WaitOffT or WaitOnKT between a MarkTime and its corresponding fSTSinceMark or LoopIfTiming.

SPLat 32 bit controllers (black boards) have none of these restrictions.  So you can use task timers on a SPLat 32 bit controller even if you are single tasking and can use any of the Pause or Wait instructions together with MarkTime and its siblings.

See MultiTrack tutorial.