0.0.0 • Published 13 years ago
timeregister v0.0.0
Very simple and silly tool to register and summarize execution time of certain code blocks.
Example usage:
var TimeRegister = require('timeregister'), util = require('util'), tr = new TimeRegister(), i, j, k;
for (i = 0; i < 10000; i++) { tr.start('count 1'); for (j = 0; j < 1000; j++) { k = 3+j; } tr.start('count 2'); for (j = 0; j < 2000; j++) { k = 3*j; } } tr.stop(); util.log(tr.report());
0.0.0
13 years ago