Module 基础模块

模块 performance

performance 基础性能监控模块

引用方法:

1
var performance = require('perf_hooks').performance;

静态函数

now

查询当前进程时间

1
static Number performance.now();

返回结果:

  • Number, 返回当前进程时间