1.0.2 • Published 4 years ago

kopi-time v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Kopi Time

This library is used for quickly measure and log time taken for a specific block of code.

Installation

Using npm: npm install --save kopi-time

Usage

const KopiTime = require('kopi-time');

const printToConsole = true;
const handle = new KopiTime('Code Block A', printToConsole);

// Do something long processing here

const timeTakenInMs = handle.calculate();

Console Result (if printToConsole is enabled)

Time Taken (Code Block A) - 23 min 2s 52ms