biomimetics/imageproc-lib — pull request #23 by fgb (2012-06-05 02:44:33+00:00)
Title: Refactor of stopwatch into sclock

The refactoring involves a name change that was long due and modifies the API so as to expose functionality closer to a system clock.

The sclock gets reset initially, within the setup function, and then keeps a global count of time that can be queried in a number of ways.

It cannot be used alongside stopwatch because it sets up Timer 8 with slightly different settings. Stopwatch has a resolution of 1/5 microseconds, while sclock has a resolution of 1/625 milliseconds. This loss in resolution in turn lengthens the time required before an overflow, which is now close to 2hrs.

Please comment on any issues you've had with this module and whether you require stopwatch to be kept in imageproc-lib. The main reason not to do this is that somebody could mistakenly setup and run both modules, with unexpected results.

If sclock gains traction, we'll go ahead and merge this pull request, so please also comment if the module is working as expected in your specific application.