ChromeDevTools / debugger-protocol-viewer

DevTools Protocol API docs—its domains, methods, and events
https://chromedevtools.github.io/devtools-protocol/
Other
862 stars 172 forks source link

Page.loadEventFired returns unknown timestamp #55

Closed GarthDB closed 8 years ago

GarthDB commented 8 years ago

The documentation is lacking on Page.loadEventFired it returns a parameter timestamp number, but I cannot figure out what this number means. I'm getting numbers like 1894443.789323 which doesn't seem to be a unix epoch timestamp.

kdzwinel commented 8 years ago

This repo tracks issues in the protocol viewer, not the protocol itself, so I have to close this issue.

However, I happen to know the problem you are facing. I had a hard time figuring out timestamp format myself, but was able to crack it (I think I just looked into the DevTools code): https://github.com/kdzwinel/betwixt/blob/master/src/lib/init-time.js .