minigame-std
    Preparing search index...

    Function getPerformanceNow

    • 参见performance.now()

      Returns number

      当前时间以微秒为单位的时间戳

      const start = getPerformanceNow();
      // 执行一些操作...
      const end = getPerformanceNow();
      console.log('耗时:', end - start, 'ms');