SPLat Logo

MarkTime [D>=16]

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map
SPLat will be shut down for the Christmas Holiday season from Friday 20 December 2024 through Tuesday 7 January 2025. We will check emails periodically and will continue to process orders but at a slower pace. Santa hat

MarkTime [D>=16]

Captures the current System Timer value to the the current task's timer register. This can subsequently be used for timing calculations. A fatal error will occur if this instruction is executed outside of a task in the MultiTrack task queue. This is a companion to LoopIfTiming

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.  There are full details on other 32 bit board enhacements.

See MultiTrack tutorial.

Dialect exclusions: Not available in dialects before 16.