time-taken

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i time-taken

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • hemanth