Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add Fuse.Timer#elapsed(), Fuse.Timer#count, Fuse.Timer.options.onLag

#42
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 ?

Reported by John-David Dalton · July 10th, 2009 @ 12:54 PM

State: patched
Milestone: Iteration 3
Assigned to: John-David Dalton John-David Dalton

Activity

  1. Joe Gornick
    Joe Gornick
    • Assigned user changed from John-David Dalton to Joe Gornick

    +1 and assigning to me!

    October 7th, 2009 @ 01:33 AM

  2. Joe Gornick
    Joe Gornick

    Just to clarify, both count and elapsed() will be reset initially and after stop() is called.

    October 21st, 2009 @ 12:41 AM

  3. Joe Gornick
    Joe Gornick
    • 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 Add Fuse.Timer.options.onLag.

    October 21st, 2009 @ 12:44 AM

  4. John-David Dalton
  5. Joe Gornick
    Joe Gornick
    • Milestone set to Iteration 2
    • Milestone order changed from 0 to 0

    Moved to iteration 2, no pull request, just cherry pick from commit.

    March 22nd, 2011 @ 09:33 PM

  6. Joe Gornick
    Joe Gornick
    • Milestone changed from Iteration 2 to Iteration 3
    • Milestone order changed from 12 to 0

    March 22nd, 2011 @ 09:41 PM

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.