ntime is a Rust-based alternative to the Unix time command, designed specifically for Windows systems. It allows users to measure the execution time of commands and provides detailed performance metrics.
- Measure execution time of any command or program
- Display user CPU time, system CPU time, and real elapsed time
- Easy-to-use command-line interface
- Lightweight and fast, written in Rust
- Rust programming language (latest stable version)
- Cargo package manager
To install Rust and Cargo, visit the official Rust website and follow the installation instructions for Windows.
-
Clone the repository:
git clone https://github.com/Rinechxn/ntime.git cd ntime -
Build the project:
cargo build --release -
The compiled binary will be available in
target/release/ntime.exe.
ntime [OPTIONS] COMMAND [ARGS]...
For example:
ntime ping google.com -n 4
This will run the ping command and display its execution time statistics.
-p: POSIX output format-o FILE: Write result to FILE-a: Append
ntime provides the following timing information:
- Real time: The total elapsed wall-clock time
- User CPU time: The amount of CPU time spent in user-mode code
- System CPU time: The amount of CPU time spent in kernel-mode code
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by the Unix
timecommand - Built with Rust 🦀