Socket
Book a DemoInstallSign in
Socket

time-taken

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

time-taken

Get the execution time of a function.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

performance, function, util, time

FAQs

Package last updated on 18 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts