var _a;
import { Globals } from "./Globals";
/**
 * Provides an interface to the HTML5 peformance API that is polyfilled for Node
 */
const mockTiming = {
    navigationStart: Date.now(),
};
export const Performance = {
    now: () => { var _a; return (Globals.performance ? (_a = Globals.performance) === null || _a === void 0 ? void 0 : _a.now() : Date.now()); },
    timing: ((_a = Globals.performance) === null || _a === void 0 ? void 0 : _a.timing) ? Globals.performance.timing : mockTiming,
};
//# sourceMappingURL=Performance.js.map