"use strict";
/**
 * Copyright: (c) Myia SAS 2026.
 * This file and its contents are licensed under the AGPLv3 License.
 * Please see the LICENSE file at the root of this repository
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.PerfHooksClock = void 0;
class PerfHooksClock {
    constructor() {
        // Lazy require so pulling this adapter in doesn't eagerly load
        // perf_hooks in environments that don't need it.
        this.performance = require('perf_hooks').performance;
    }
    now() {
        return this.performance.now();
    }
    wallNow() {
        return Date.now();
    }
}
exports.PerfHooksClock = PerfHooksClock;
