kopi-time
v1.0.2
Published
This library is used for quickly measure and log time taken for a specific block of code.
Downloads
2
Readme
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