decord/source/13423_defaultPerformanceNow.js

41 lines
1 KiB
JavaScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13423
// Function ID: 103087
2026-07-20 16:05:17 +00:00
// Name: defaultPerformanceNow
// Dependencies: []
2026-07-27 11:26:19 +00:00
// Module 13423 (defaultPerformanceNow)
2026-07-20 16:05:17 +00:00
arg5.start = undefined;
let tmp2 = "undefined" !== typeof window && window;
if (tmp2) {
const _window = window;
let webkitPerformance = window.performance;
if (!webkitPerformance) {
const _window2 = window;
webkitPerformance = window.msPerformance;
}
if (!webkitPerformance) {
const _window3 = window;
webkitPerformance = window.webkitPerformance;
}
tmp2 = webkitPerformance;
}
2026-07-23 10:11:24 +00:00
let closure_0 = tmp2;
2026-07-20 16:05:17 +00:00
let performanceNow = function defaultPerformanceNow(arg0) {
return Date.now();
};
if (nativePerformanceNow.nativePerformanceNow) {
performanceNow = nativePerformanceNow.nativePerformanceNow;
} else if (tmp2) {
performanceNow = function performanceNow() {
let now = tmp2.now;
if (now) {
now = tmp2.now();
}
return now;
};
}
arg5.start = function start() {
let closure_0 = performanceNow();
2026-07-23 10:11:24 +00:00
return () => outer1_1() - closure_0;
2026-07-20 16:05:17 +00:00
};