Add Fuse.Timer#elapsed(), Fuse.Timer#count, Fuse.Timer.options.onLag
Reported by John-David Dalton | July 10th, 2009 @ 12:54 PM | in Iteration 3
var timer = Fuse.Timer(callback, interval, options);
timer.count // number of times the callback as been called
timer.elapsed() // total time since the timer was started (if stopped the elapsed will be set to 0)
also we could add an event handler onLag
which
would execute when the timer detects its timing is off.
Post on timers and detecting timer lag:
http://googlecode.blogspot.com/2009/07/gmail-for-mobile-html5-series-using.html
What do you all think ?
Comments and changes to this ticket
-
Joe Gornick October 7th, 2009 @ 01:33 AM
- Assigned user changed from John-David Dalton to Joe Gornick
+1 and assigning to me!
-
Joe Gornick October 21st, 2009 @ 12:41 AM
Just to clarify, both count and elapsed() will be reset initially and after stop() is called.
-
Joe Gornick October 21st, 2009 @ 12:44 AM
- Assigned user changed from Joe Gornick to John-David Dalton
- State changed from new to patched
My commit is located here: https://github.com/jgornick/fusejs/commit/74f17e11f1f1ff797eff93cf1...
The onLag feature has been created as a separate issue #63.
-
John-David Dalton May 29th, 2010 @ 10:41 AM
- Milestone cleared.
-
Joe Gornick March 22nd, 2011 @ 09:33 PM
- Milestone set to Iteration 2
- Milestone order changed from 0 to 0
Moved to iteration 2, no pull request, just cherry pick from commit.
-
Joe Gornick March 22nd, 2011 @ 09:41 PM
- Milestone changed from Iteration 2 to Iteration 3
- Milestone order changed from 12 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
JavaScript frameworks share similar features and functionality such as DOM manipulation, event registration, and CSS selector engines. FuseJS attempts to incorporate the strengths of these frameworks into one stable, efficient, and optimized core JavaScript framework.