Fixed #92.

Added a simple check for a zero value before performing division.
Merge pull request #96 from rdnelson/timer_fix

Fixed #92. Timer now checks for div by zero.