5.0.8 • Published 2 years ago

measure-time v5.0.8

Weekly downloads
560
License
MIT
Repository
github
Last release
2 years ago

measure-time

measure-time is a stopwatch.

Status

CategoryStatus
Versionnpm
DependenciesDavid
Dev dependenciesDavid
BuildGitHub Actions
LicenseGitHub

Installation

$ npm install measure-time

Quick start

First you need to add a reference to measure-time to your application.

const { measureTime } = require('measure-time');

If you use TypeScript, use the following code instead:

import { measureTime } from 'measure-time';

Then, call the measureTime function to start measuring time. The function returns another function, getElapsed, that you need to call to get the elapsed time.

const getElapsed = measureTime();

// ...

const elapsed = getElapsed();

console.log(elapsed);
// => {
//      seconds: 3
//      milliseconds: 141,
//      millisecondsTotal: 3141
//    }

Running quality assurance

To run quality assurance for this module use roboter:

$ npx roboter
5.0.8

2 years ago

5.0.7

3 years ago

5.0.6

3 years ago

5.0.5

3 years ago

5.0.4

3 years ago

5.0.3

3 years ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

4 years ago

4.0.0

5 years ago

3.1.1

6 years ago

3.1.0

7 years ago

3.0.0

8 years ago

0.0.1-security

8 years ago

2.0.0

8 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago