« Tech Support: 5V analog inputs | Main | Making a difference »

Tech Support: SuperTimers

Kevin asked:

Is it possible to extract the elapsed time into W since the MARKTIME command or the actual time itself?

And the GETTICK 10 & 100 commands, I do not quite get how they are intended to be used.

Kevin, MarkTime and LoopIfTiming are designed as an easy to use time limit mechanism. To measure elapsed time use STStart and fSTTimeSince. You must also then declare a memory variable, using defTIME24, to hold the captured time value.

The GetTick10 and GetTick100 instructions are an older timing mechanism. They let you generate timing that does not have cumulative errors due to the delay between a timer expiring and then getting restarted. The SuperTimers are design to not have cumulative errors providing the task queue takes less than 10mS.

TrackBack

TrackBack URL for this entry:
http://www.splatco.com/cgi-sys/cgiwrap/microcon/managed-mt/mt-tb.cgi/78

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


About

This page contains a single entry from the blog posted on October 4, 2007 10:41 PM.

The previous post in this blog was Tech Support: 5V analog inputs.

The next post in this blog is Making a difference.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.33