tzellman/ember-stopwatch

Feature Request: MinuteClock, HourClock and DayClock service

arthur5005 opened this issue · 2 comments

It would be nice if there were other clock services that had minute, hour and day resolutions for the update interval of the time property. This would prevent invoking the template engine for re-render checking.

MinuteClock
HourClock
DayClock

perhaps?

I don't mind writing them myself, but really I'm just copy-pasting what's in your clock service to get different resolutions.

Gave it some more thought and opened a PR to add time division props to both the util and the service. This should make the clock service a drop in replacement for https://github.com/lozjackson/ember-clock
Added some basic tests.

Let me know what you think.

Merged in #76