console.time & console.timeEnd polyfill
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
bower.json
console-time.js

README.md

console.time polyfill

Lightweight and simple polyfill for console.time() and console.timeEnd().

Can be installed via bower with bower install console-time --save-dev.

Example usage

// Start the timer by passing it a key
console.time('myTimer');

// Call timeEnd later to see how long an operation took
setTimeout(function() {
  console.timeEnd('myTimer');
}, 2000);

// It should then log out something like..
'myTimer: 2000ms'

For more information on console.time() visit MDN.