{"action":"created","issue":{"url":"https://api.github.com/repos/japgolly/scalajs-benchmark/issues/6","labels_url":"https://api.github.com/repos/japgolly/scalajs-benchmark/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/japgolly/scalajs-benchmark/issues/6/comments","events_url":"https://api.github.com/repos/japgolly/scalajs-benchmark/issues/6/events","html_url":"https://github.com/japgolly/scalajs-benchmark/issues/6","id":119258245,"number":6,"title":"Use standard high-resolution timer in browsers","user":{"login":"ochrons","id":629483,"avatar_url":"https://avatars.githubusercontent.com/u/629483?v=3","gravatar_id":"","url":"https://api.github.com/users/ochrons","html_url":"https://github.com/ochrons","followers_url":"https://api.github.com/users/ochrons/followers","following_url":"https://api.github.com/users/ochrons/following{/other_user}","gists_url":"https://api.github.com/users/ochrons/gists{/gist_id}","starred_url":"https://api.github.com/users/ochrons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ochrons/subscriptions","organizations_url":"https://api.github.com/users/ochrons/orgs","repos_url":"https://api.github.com/users/ochrons/repos","events_url":"https://api.github.com/users/ochrons/events{/privacy}","received_events_url":"https://api.github.com/users/ochrons/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-27T23:49:09Z","updated_at":"2015-11-28T01:36:06Z","closed_at":null,"body":"http://www.w3.org/TR/hr-time/#sec-DOMHighResTimeStamp\r\n\r\nhttp://caniuse.com/#feat=high-resolution-time\r\n\r\n`window.performance.now();`\r\n"},"comment":{"url":"https://api.github.com/repos/japgolly/scalajs-benchmark/issues/comments/160236203","html_url":"https://github.com/japgolly/scalajs-benchmark/issues/6#issuecomment-160236203","issue_url":"https://api.github.com/repos/japgolly/scalajs-benchmark/issues/6","id":160236203,"user":{"login":"japgolly","id":202935,"avatar_url":"https://avatars.githubusercontent.com/u/202935?v=3","gravatar_id":"","url":"https://api.github.com/users/japgolly","html_url":"https://github.com/japgolly","followers_url":"https://api.github.com/users/japgolly/followers","following_url":"https://api.github.com/users/japgolly/following{/other_user}","gists_url":"https://api.github.com/users/japgolly/gists{/gist_id}","starred_url":"https://api.github.com/users/japgolly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japgolly/subscriptions","organizations_url":"https://api.github.com/users/japgolly/orgs","repos_url":"https://api.github.com/users/japgolly/repos","events_url":"https://api.github.com/users/japgolly/events{/privacy}","received_events_url":"https://api.github.com/users/japgolly/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T01:36:06Z","updated_at":"2015-11-28T01:36:06Z","body":"Ah yeah, that's already in use - it just doesn't look like it.\r\n\r\nThe default timer is chosen here:\r\nhttps://github.com/japgolly/scalajs-benchmark/blob/master/benchmark/src/main/scala/japgolly/scalajs/benchmark/engine/Clock.scala#L78-L79\r\n\r\nWhich points to `SysNano` which uses `System.nanoTime`\r\nhttps://github.com/japgolly/scalajs-benchmark/blob/master/benchmark/src/main/scala/japgolly/scalajs/benchmark/engine/Clock.scala#L32\r\n\r\nWhich Scala.JS implements by checking if `window.performance.now` is available:\r\nhttps://github.com/scala-js/scala-js/blob/e51625a62faf464f5a68fdc97e6670757c3971c9/javalanglib/src/main/scala/java/lang/System.scala#L27-L45"}}