25 lines
687 B
JavaScript
25 lines
687 B
JavaScript
// Module ID: 164
|
|
// Function ID: 165
|
|
// Name: warnNoNativePerformance
|
|
// Dependencies: [165, 154]
|
|
// Exports: warnNoNativePerformance
|
|
|
|
// Module 164 (warnNoNativePerformance)
|
|
import warnOnceDefault from "warnOnce" /* 165 */;
|
|
import importDefaultResult from "NativePerformanceCxx" /* 154 */;
|
|
|
|
let fn;
|
|
if (importDefaultResult != null) {
|
|
fn = importDefaultResult.now;
|
|
}
|
|
if (fn == null) {
|
|
fn = global.nativePerformanceNow;
|
|
}
|
|
if (fn == null) {
|
|
fn = () => Date.now();
|
|
}
|
|
|
|
export const warnNoNativePerformance = function warnNoNativePerformance() {
|
|
warnOnceDefault("missing-native-performance", "Missing native implementation of Performance");
|
|
};
|
|
export const getCurrentTimeStamp = fn;
|