UNPKG

@soapbox.pub/wasmboy

Version:

Soapbox fork of Wasmboy.

11 lines (9 loc) 252 B
// Common Static functions // Function to get performance timestamp // This is to support node vs. Browser export const getPerformanceTimestamp = () => { if (typeof window !== 'undefined') { return performance.now(); } return Date.now(); };