Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a-poor/timeme
A tool to time command line program execution
https://github.com/a-poor/timeme
cli rust timer utility
Last synced: about 1 month ago
JSON representation
A tool to time command line program execution
- Host: GitHub
- URL: https://github.com/a-poor/timeme
- Owner: a-poor
- License: mit
- Created: 2021-10-09T16:59:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-13T03:15:51.000Z (about 3 years ago)
- Last Synced: 2024-11-29T11:01:17.780Z (about 1 month ago)
- Topics: cli, rust, timer, utility
- Language: Rust
- Homepage: https://crates.io/crates/timeme
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# timeme
[![Crate Version](https://img.shields.io/crates/v/timeme.svg)](https://crates.io/crates/timeme)
[![Rust](https://github.com/a-poor/timeme/actions/workflows/rust-test.yml/badge.svg?branch=main)](https://github.com/a-poor/timeme/actions/workflows/rust-test.yml)_created by Austin Poor_
A CLI for timing command line program execution, written in Rust.
# Installation
```bash
cargo install timeme
```## Quick Start
Here's a quick look at `timeme`'s help:
```bash
timeme 0.2.4
$ timeme --helpAustin Poor
Times the execution of a command.
USAGE:
timeme [OPTIONS] [ARGS]...ARGS:
The command to time
... The arguments to pass to CMDFLAGS:
-h, --help Print help information
-V, --version Print version informationOPTIONS:
-n, --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:
```bash
$ timeme echo Hello, world!
1.281654ms (+/- 412.714µs) for 156 loops
```You can specify the number of times to run the command.
```bash
$ 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.