mozilla-b2g/gaia — pull request #11846 by evhan55 (2013-08-29 19:37:00+00:00)
Title: 909386

- New Stopwatch API
- `start()` starts the stopwatch
- `getElapsedTime()` gets a Date object storing the duration since starting the stopwatch
- `pause()` pauses the stopwatch
- `lap()` returns a Date object storing the duration since the last lap, or if no last lap, since starting the stopwatch
- `reset()` sets the stopwatch's elapsed time back to 0
- Tests
- tested the API functions in their own suites, leaving out `start()` since its encompassed by the test for `getElapsedTime()`
- Questions
- not sure if the view needs the model to return a list of all lap times, can the view handle that list itself?