Update August 17 4pm PDT: http://TiddlyTools.com/timer.html
* IMPORTANT: TiddlyTools/Timer/Ticker adjusts for "drift" due to Alarms and
CountDown processing overhead.
\define ticker(delay:1000)
<$action-timeout delay="$delay$" actions="""
<$action-setfield $tiddler="$:/temp/timer/ticker" text=<<now
[UTC]YYYY0MM0DD0hh0mm0ss0XXX>> />
<$importvariables filter="TiddlyTools/Timer/Alarms"> <<alarms_check>>
</$importvariables>
<$importvariables filter="TiddlyTools/Timer/CountDown">
<<countdown_tick>> </$importvariables>
<!-- ADJUST FOR MSEC DRIFT DUE TO PROCESSING OVERHEAD -->
<$vars msec=<<now "0XXX">>><$vars delay={{{ [[1000]subtract<msec>] }}}>
<$macrocall $name="ticker" delay=<<delay>> />
</$vars></$vars>
"""/>
\end
<<ticker>>
Previously, ticks could accumulate as much as several hundred milliseconds
overhead that would eventually cause it to "skip" to the next second (this
could occur as frequently as every few seconds, depending upon how much
processing overhead was taken by servicing the Alarms and CountDown
handlers.
* SampleSequence (a programmed CountDown example)
- completely re-written to work with global ticker-based timeouts
- no longer skips a second when cycling through multiple sessions
(actually a fix to underlying CountDown code)
- has option to enable/disable modal messages ("ask to continue")
- displays event messages inline for better tracking of events during
active sequence
Note: The tiddler contents have been updated, but the tiddler modified
datetimes haven't changed (I had the timestamps off for testing purposes).
You should copy ALL tiddlers when updating.
enjoy,
-e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/c96311ed-897b-409e-9413-e974dbd88db3o%40googlegroups.com.