You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
496 B
26 lines
496 B
|
3 years ago
|
"use strict";
|
||
|
|
|
||
|
|
const EventTargetImpl = require("../events/EventTarget-impl").implementation;
|
||
|
|
|
||
|
|
class PerformanceImpl extends EventTargetImpl {
|
||
|
|
constructor(args, privateData) {
|
||
|
|
super(args, privateData);
|
||
|
|
|
||
|
|
this._rawPerformance = privateData.rawPerformance;
|
||
|
|
}
|
||
|
|
|
||
|
|
now() {
|
||
|
|
return this._rawPerformance.now();
|
||
|
|
}
|
||
|
|
|
||
|
|
get timeOrigin() {
|
||
|
|
return this._rawPerformance.timeOrigin;
|
||
|
|
}
|
||
|
|
|
||
|
|
toJSON() {
|
||
|
|
return this._rawPerformance.toJSON();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
exports.implementation = PerformanceImpl;
|