1.1.12 • Published 2 years ago

timoi v1.1.12

Weekly downloads
53
License
ISC
Repository
github
Last release
2 years 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

2 years ago

1.1.11

2 years ago

1.1.9

2 years ago

1.1.10

2 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago