0.1.1 • Published 11 years ago

timed v0.1.1

Weekly downloads
19
License
-
Repository
github
Last release
11 years ago

=======

timed

Simplifies high resolution timing for profiling

Usage exampe:

timed = require('timed');

//Start the timer
timed.reset();

setTimeout(function() {
  //should be about 1000 ms
  console.log('Elapsed: ' + timed.since() + ' ms');  

  t.reset();  //timer starts again now from 0
  setTimeout(function() {
    //This one should be about 1500 ms rounded to 3 decimal places
    console.log('Elapsed: ' + timed.rounded() + 'ms');
  }, 1500);
  

}, 1000);
0.1.1

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago