1.0.1 • Published 9 years ago

time-taken v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

time-taken Build Status

Get the execution time of a function.

Install

$ npm install --save time-taken

Usage

var timeTaken = require('time-taken');

var meow = function() {
  console.log("meow");
};

console.log( timeTaken(meow) );
//=> 3951.710999943316

API

timeTaken(func)

func

Required Type: function

meow

Returns a Number representing the time taken to execute the given function in miliseconds.

License

MIT © hemanth