0.2.1 • Published 9 years ago

ugly-timer v0.2.1

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

//now # Ugly Timer

Another ugly timer for finding the bottleneck

Installation

with npm

npm install ugly-timer

Example

var Timer = require('ugly-timer')
var timer = Timer()

//call some heavy function
heavyFunction() 
timer.lapIt('heavy function')

anotherHeavyFunction().then((response) => { 
		timer.lapIt()
       })


var timings = timer.stop()

//console.log(timings) 
// [{ 'Start': 0}, {heavyFunction: 14}, {'another Heavy function' : 54} , {'End: 55}]
0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago