UNPKG

minigame-std

Version:

Cross-platform standard library for WeChat minigame and web browsers with unified APIs for crypto, fs, fetch, storage, and more.

16 lines (14 loc) 361 B
/** * 参见`performance.now()` * @returns 当前时间以毫秒为单位的时间戳 * @since 2.0.0 * @example * ```ts * const start = getPerformanceNow(); * // 执行一些操作... * const end = getPerformanceNow(); * console.log('耗时:', end - start, 'ms'); * ``` */ declare function getPerformanceNow(): number; export { getPerformanceNow };