mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1063559 - Convert TelemetryStopwatch.jsm to use Components.utils.now(). r=irving
This commit is contained in:
parent
3a5b415c8d
commit
41efdd1953
@ -54,7 +54,7 @@ this.TelemetryStopwatch = {
|
||||
return false;
|
||||
}
|
||||
|
||||
timers[aHistogram] = Date.now();
|
||||
timers[aHistogram] = Components.utils.now();
|
||||
return true;
|
||||
},
|
||||
|
||||
@ -117,7 +117,8 @@ this.TelemetryStopwatch = {
|
||||
delete timers[aHistogram];
|
||||
|
||||
if (start) {
|
||||
let delta = Date.now() - start;
|
||||
let delta = Components.utils.now() - start;
|
||||
delta = Math.round(delta);
|
||||
let histogram = Telemetry.getHistogramById(aHistogram);
|
||||
histogram.add(delta);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user