average-time

Calculate the average of the real execution time of a command-line program.

Usage no npm install needed!

<script type="module">
  import averageTime from 'https://cdn.skypack.dev/average-time';
</script>

README

average-time

Calculate the average of the real execution time of a command-line program.

Requirements

Install

Run in your shell:

$ npm install -g average-time

Usage

Usage: average-time [options] <cmd> <times>

  Options:

    -h, --help        output usage information
    -V, --version     output the version number

Example

$ average-time "ls -l" 5

Example output:

1) 0.006
2) 0.005
3) 0.005
4) 0.006
5) 0.006
Average: 0.006