$ npm install performance-ms
performance timer in ms
import { now, diff } from 'performance-ms';
const startTime = now();
// run your code
const rt = diff(startTime);
console.log('rt %d', rt);
// stdout: rt 1.228
fengmk2 |
semantic-release-bot |
|---|
This project follows the git-contributor spec, auto updated at Fri Aug 04 2023 15:21:17 GMT+0800.
© 2010 - cnpmjs.org x YWFE | Home | YWFE