kopi-time

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i kopi-time

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

2.5 kB

Total Files

5

Last publish

Collaborators

  • yeehuipoh