{"action":"closed","issue":{"url":"https://api.github.com/repos/brion/ogv.js/issues/204","labels_url":"https://api.github.com/repos/brion/ogv.js/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/brion/ogv.js/issues/204/comments","events_url":"https://api.github.com/repos/brion/ogv.js/issues/204/events","html_url":"https://github.com/brion/ogv.js/issues/204","id":92640593,"number":204,"title":"Clean up timer code","user":{"login":"brion","id":103075,"avatar_url":"https://avatars.githubusercontent.com/u/103075?v=3","gravatar_id":"","url":"https://api.github.com/users/brion","html_url":"https://github.com/brion","followers_url":"https://api.github.com/users/brion/followers","following_url":"https://api.github.com/users/brion/following{/other_user}","gists_url":"https://api.github.com/users/brion/gists{/gist_id}","starred_url":"https://api.github.com/users/brion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brion/subscriptions","organizations_url":"https://api.github.com/users/brion/orgs","repos_url":"https://api.github.com/users/brion/repos","events_url":"https://api.github.com/users/brion/events{/privacy}","received_events_url":"https://api.github.com/users/brion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brion/ogv.js/labels/code-hygiene","name":"code-hygiene","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T13:39:42Z","updated_at":"2015-07-02T13:56:21Z","closed_at":"2015-07-02T13:56:21Z","body":"switch to something like:\r\n\r\n```\r\nvar delta = time(function() {\r\n  frameSink.drawFrame(yCbCrBuffer);\r\n});\r\nlastFrameDecodeTime += delta;\r\ndrawingTime += delta;\r\n```\r\nfrom\r\n\r\n```\r\n\t\tvar start, delta;\r\n\r\n\t\tstart = getTimestamp();\r\n\r\n\t\tframeSink.drawFrame(yCbCrBuffer);\r\n\r\n\t\tdelta = getTimestamp() - start;\r\n\t\tlastFrameDecodeTime += delta;\r\n\t\tdrawingTime += delta;\r\n```\r\n"}}