2.0.7 • Published 5 years ago

pon-timer v2.0.7

Weekly downloads
347
License
Apache-2.0
Repository
github
Last release
5 years ago

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

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

6 years ago

2.0.1

7 years ago