pon-timer

Timer for pon

Usage no npm install needed!

<script type="module">
  import ponTimer from 'https://cdn.skypack.dev/pon-timer';
</script>

README

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