Crates.io | hmf |
lib.rs | hmf |
version | 0.0.1 |
source | src |
created_at | 2024-09-13 17:03:23.509497 |
updated_at | 2024-09-13 17:03:23.509497 |
description | A CLI tool to calculate time and percentage differences between two time values. |
homepage | https://github.com/archways404/HMF |
repository | https://github.com/archways404/HMF |
max_upload_size | |
id | 1373983 |
size | 16,591 |
How Much Faster (HMF) is a simple CLI application written in Rust to calculate time differences and percentage differences between two time values. It supports input in seconds (s) and milliseconds (ms), and it is useful for quickly comparing two durations.
2s
) and milliseconds (e.g., 300ms
).You can build and install the HMF CLI by cloning the repository and using cargo
:
git clone https://github.com/archways404/hmf.git
cd hmf
cargo build --release
This will compile the project and generate the hmf
executable inside the target/release/
directory.
Optionally, you can install the binary globally:
cargo install --path .
This will allow you to run hmf
from anywhere in your terminal.
The CLI accepts two time values as input and calculates the difference and percentage difference between them.
hmf 888s 2ms
Output:
Difference: 887.998s
v2 (2ms) is 44400000.00% faster than v1 (888s)
To see the available options, you can run:
hmf --help
The output will be:
How Much Faster 0.1
Calculate time differences and percentage differences between two time values
USAGE:
hmf <TIME1> <TIME2>
ARGS:
<TIME1> First time value (e.g., "2s", "300ms")
<TIME2> Second time value (e.g., "888s", "500ms")
OPTIONS:
-h, --help Print help information
-V, --version Print version information
This project is licensed under the MIT License. See the LICENSE file for details.