pon-timer

2.0.7 • Public • Published

Title Banner

Build Status npm Version JS Standard

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.

Links

Readme

Keywords

Package Sidebar

Install

npm i pon-timer

Weekly Downloads

4

Version

2.0.7

License

Apache-2.0

Unpacked Size

171 kB

Total Files

50

Last publish

Collaborators

  • okunishinishi
  • realglobe