hmf

Crates.iohmf
lib.rshmf
version0.0.1
sourcesrc
created_at2024-09-13 17:03:23.509497
updated_at2024-09-13 17:03:23.509497
descriptionA CLI tool to calculate time and percentage differences between two time values.
homepagehttps://github.com/archways404/HMF
repositoryhttps://github.com/archways404/HMF
max_upload_size
id1373983
size16,591
archways (archways404)

documentation

https://github.com/archways404/HMF/blob/master/README.md

README

How Much Faster (HMF)

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.

Features

  • Calculate the absolute time difference between two values.
  • Calculate the percentage difference between two time values.
  • Accepts inputs in seconds (e.g., 2s) and milliseconds (e.g., 300ms).

Installation

Download and install

  • You can download and install the program via the Releases

Prerequisites

  • Ensure you have Rust installed on your machine.

Build and Install

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.

Usage

The CLI accepts two time values as input and calculates the difference and percentage difference between them.

Example

hmf 888s 2ms

Output:

Difference: 887.998s
v2 (2ms) is 44400000.00% faster than v1 (888s)

Help

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

License

This project is licensed under the MIT License. See the LICENSE file for details.

Commit count: 0

cargo fmt