1.1.12 • Published 11 months ago

timoi v1.1.12

Weekly downloads
53
License
ISC
Repository
github
Last release
11 months ago

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.

1.1.12

11 months ago

1.1.11

11 months ago

1.1.9

12 months ago

1.1.10

12 months ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago