mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Timestamp fix for issue #5690
This commit is contained in:
parent
ad5846f2e1
commit
1612f723a8
4 changed files with 23 additions and 1 deletions
|
@ -51,7 +51,7 @@ impl<'a> PerformanceMethods for JSRef<'a, Performance> {
|
|||
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime/Overview.html#dom-performance-now
|
||||
fn Now(self) -> DOMHighResTimeStamp {
|
||||
let navStart = self.timing.root().r().NavigationStartPrecise();
|
||||
let now = (time::precise_time_ns() as f64 - navStart) * 1000000 as f64;
|
||||
let now = (time::precise_time_ns() as f64 - navStart) / 1000000 as f64;
|
||||
Finite::wrap(now)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue