4.1.2 • Published 4 years ago

@akkadu/timer v4.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Description

This is a module that allows multiple console.time type events to run at the same time.

Usage example

import Timer from '@akkadu/timer'
const timer = new Timer()

// here some-event is the id of the timer
const startTime = timer.time('some-event')
setTimeout(()=>{
  const {elapsedTime, endTime} = timer.timeEnd('some-event')
  console.log(`Timer started at ${startTime}, ended at ${endTime}, elapsed time is ${elapsedTime}`)
},1000)
4.1.0

4 years ago

4.0.0

4 years ago

4.1.2

4 years ago

2.1.0

5 years ago

1.3.4

5 years ago

1.1.32

6 years ago

1.1.18

6 years ago

1.1.11

6 years ago