npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

time-taken

1.0.1

@hemanth

npmHomeRepoSnykSocket
Downloads:5
$ npm install time-taken
DailyWeeklyMonthlyYearly

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