console-time-polyfill-simple

1.0.1 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i console-time-polyfill-simple

      Weekly Downloads

      8

      Version

      1.0.1

      License

      MIT

      Last publish

      Collaborators

      • 9gag