timoi
TypeScript icon, indicating that this package has built-in type declarations

1.1.12 • Public • Published

Timoi

Yet another elapse time library.

Installation

 $ npm i timoi

Usage

Log to the console or take timing date for further computation

import timoi from "timoi"

const time = timoi()
doWork()

time()      // console.log(`Took ${x}ms`)
time.time() // x
time.str()  // `${x}ms`

Named scopes

import timoi from "timoi"

const time = timoi("doWork")
doWork()

time()      // console.log(`doWork took ${x}ms`)
doWork()

time()      // console.log(`doWork#2 took ${x}ms`)

Contribute

All feedback is appreciated. Create a pull request or write an issue.

Package Sidebar

Install

npm i timoi

Weekly Downloads

3

Version

1.1.12

License

ISC

Unpacked Size

21.5 kB

Total Files

11

Last publish

Collaborators

  • zzrv