Package Exports
- microtimer
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (microtimer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
#microtimer
A simple high-resolution timing and profiling tool. ##installation
npm install microtimer
##usage
timer.set('foo');
setTimeout(function() {
timer.get('foo');
// Set logger to a function
timer.setLogger(function(name, ns, str) {
console.log("Timer:" + name + " second timeout: " + (ns / 1e6) + "ms");
})
}, 1000);
setTimeout(function() {
timer.get('foo');
// Clears 'foo' timer
timer.clear('foo');
},3000);
// Timer:foo 1002238412ns
// Timer:foo second timeout 3002.888295ms