running-time

1.0.1 • Public • Published

running-time

'running-time' is a function used to calculate the running time.

need nodejs >= 8.5

runTime(target, ...arg)

const runTime = require('running-time')

function sum(n) {
    let sum = 0.0;
    for(let i = 0; i < n; i++) {
        sum += 0.1;
    }
    return sum;
}

runTime(sum, 1e9);

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i running-time

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • lizhooh