photonstorm/phaser — pull request #803 by joelrobichaud (2014-05-05 17:59:06+00:00)
Title: Fixed various problems with Timer class

__Problem 1 :__ When a timer is resumed manually (from code) after being game resumed (automatically from lost of focus), the way _pausedTotal is computed is no longer accurate since it uses the game pause time.

__Problem 2 :__ If a timer is paused from code after the game has been game paused, it is not considered to be code paused.

These problems have to occur if you want to have a pause screen and display it when the game is out of focus, so that, when the user comes back, he can resume manually. In this sequence, you have to code pause your timer when the game is automatically paused. Then, the user has to close the pause screen for the timer to be resumed.