1.2.1 • Published 8 years ago

times-js v1.2.1

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

Times-js

Times-js was created to measure how long it takes for a function to complete.

See this package on NPM.

Installing

To install Times-js enter the command:

npm install times-js --save

Usage

const times = require('times-js');

times.howLong(() => {
  console.log("This is the function being measured.");
});

To run a function with parameters, try this:

const times = require('times-js');

// Just a little add function...
let add = (a, b) => {
  console.log(a + " + "+ b +" = " + (a + b));
};

times.howLong(add, 1, 2);
1.2.1

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago