Files
FrenoCorp/node_modules/lib0/performance.node.js
Michael Freno 7c684a42cc FRE-600: Fix code review blockers
- Consolidated duplicate UndoManagers to single instance
- Fixed connection promise to only resolve on 'connected' status
- Fixed WebSocketProvider import (WebsocketProvider)
- Added proper doc.destroy() cleanup
- Renamed isPresenceInitialized property to avoid conflict

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-25 00:08:01 -04:00

22 lines
614 B
JavaScript

import { performance } from 'node:perf_hooks'
import { nop } from './function.js'
import * as time from './time.js'
/**
* @type {typeof performance.measure}
*/
/* c8 ignore next */
export const measure = performance.measure ? performance.measure.bind(performance) : /** @type {any} */ (nop)
/**
* @type {typeof performance.now}
*/
/* c8 ignore next */
export const now = performance.now ? performance.now.bind(performance) : time.getUnixTime
/**
* @type {typeof performance.mark}
*/
/* c8 ignore next */
export const mark = performance.mark ? performance.mark.bind(performance) : /** @type {any} */ (nop)