remove Math.ceil, useless because multiplication of integers always give integers
reset time spent when the timer duration is changed
Merge pull request #14 from Nicolas01/BugOnDurationChanged

Bug on duration changed