timeme

Crates.iotimeme
lib.rstimeme
version0.2.4
sourcesrc
created_at2021-10-09 23:23:25.785752
updated_at2021-10-13 03:16:49.470536
descriptionA tool to time command line program execution
homepagehttps://github.com/a-poor/timeme
repositoryhttps://github.com/a-poor/timeme
max_upload_size
id462953
size17,881
Austin Poor (a-poor)

documentation

README

timeme

Crate Version Rust

created by Austin Poor

A CLI for timing command line program execution, written in Rust.

Installation

cargo install timeme

Quick Start

Here's a quick look at timeme's help:

timeme 0.2.4
$ timeme --help

Austin Poor <a-poor@users.noreply.github.com>

Times the execution of a command.

USAGE:
    timeme [OPTIONS] <CMD> [ARGS]...

ARGS:
    <CMD>        The command to time
    <ARGS>...    The arguments to pass to CMD

FLAGS:
    -h, --help       Print help information
    -V, --version    Print version information

OPTIONS:
    -n, --number <number>    Number of times to run the command. Note: Set to <= 0 to run for at
                             least 0.2s. [default: 0]

And here's what it looks like in action:

$ timeme echo Hello, world!
1.281654ms (+/- 412.714µs) for 156 loops

You can specify the number of times to run the command.

$ timeme -n 10 echo Hello, world!
1.48318ms (+/- 326.664µs) for 10 loops

Or, if you leave -n blank, timeme will run the command repeatedly until it's been run for at least 0.2 seconds.

Commit count: 24

cargo fmt