README
Timer for pon
Installation
$ npm install pon-timer --save
Usage
'use strict'
const ponTimer = require('pon-timer')
async function tryExample () {
const timer = ponTimer()
timer.tick('project:your-task-name') // Start tick to measure
/* ... */
const took = timer.tick('project:your-task-name') // Measure from last tick
console.log(`The task took ${took}ms`)
}
tryExample()
API Guide
License
This software is released under the Apache-2.0 License.