{"action":"opened","issue":{"url":"https://api.github.com/repos/cmmarslender/timer/issues/1","labels_url":"https://api.github.com/repos/cmmarslender/timer/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/cmmarslender/timer/issues/1/comments","events_url":"https://api.github.com/repos/cmmarslender/timer/issues/1/events","html_url":"https://github.com/cmmarslender/timer/issues/1","id":127343757,"number":1,"title":"Starting / Stopping causes elapsed time errors","user":{"login":"cmmarslender","id":1915905,"avatar_url":"https://avatars.githubusercontent.com/u/1915905?v=3","gravatar_id":"","url":"https://api.github.com/users/cmmarslender","html_url":"https://github.com/cmmarslender","followers_url":"https://api.github.com/users/cmmarslender/followers","following_url":"https://api.github.com/users/cmmarslender/following{/other_user}","gists_url":"https://api.github.com/users/cmmarslender/gists{/gist_id}","starred_url":"https://api.github.com/users/cmmarslender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmmarslender/subscriptions","organizations_url":"https://api.github.com/users/cmmarslender/orgs","repos_url":"https://api.github.com/users/cmmarslender/repos","events_url":"https://api.github.com/users/cmmarslender/events{/privacy}","received_events_url":"https://api.github.com/users/cmmarslender/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-19T01:30:58Z","updated_at":"2016-01-19T01:30:58Z","closed_at":null,"body":"Elapsed time doesn't take into account any time the timer was stopped.\r\n\r\nExample:\r\n```php\r\n$t = new Timer();\r\n\r\n$timer->start();\r\nsleep(5);\r\n$timer-stop();\r\nsleep(5);\r\n$timer->start();\r\n\r\n$timer->elapsed_time(); // returns -5 (I think)\r\n```\r\n\r\nShould either reset before starting again, or else track starts / stops and calculate only running time?"}}