This package has been deprecated

Author message:

clck has been deprecated and replaced by stpwtch (https://www.npmjs.com/package/stpwtch)

clck

1.0.3 • Public • Published

clck.js Build Status

$ npm install --save clck
var clock = require('clck');
 
// Start the timer.
clock.start('test');
 
// All the timers we've started are exposed via
// console.log(clock.timers);
 
// After a while, check how long it's been.
setTimeout(function(){
  console.log('"test" has been running for %d milliseconds', clock.time('test'));
}, 5000);
 
// Later, stop the timer (and execute a callback with the duration).
setTimeout(function(){
  clock.stop('test', function(duration, id){
    console.log('"%s" took %d milliseconds', id, duration);
  });
}, 10000);
 

Readme

Keywords

Package Sidebar

Install

npm i clck

Weekly Downloads

4

Version

1.0.3

License

MIT

Last publish

Collaborators

  • flesch