fix performance timing precision and navigation_start unit; add LoadEventStart and LoadEventEnd timing

This commit is contained in:
Zhen Zhang 2016-04-12 14:19:08 +08:00
parent ac062931e2
commit 7169a08a34
5 changed files with 43 additions and 20 deletions

View file

@ -76,6 +76,16 @@ impl PerformanceTimingMethods for PerformanceTiming {
fn DomComplete(&self) -> u64 {
self.document.get_dom_complete()
}
// https://w3c.github.io/navigation-timing/#widl-PerformanceTiming-loadEventStart
fn LoadEventStart(&self) -> u64 {
self.document.get_load_event_start()
}
// https://w3c.github.io/navigation-timing/#widl-PerformanceTiming-loadEventEnd
fn LoadEventEnd(&self) -> u64 {
self.document.get_load_event_end()
}
}