Execution Time
This Rust project provides a simple way to measure and display the execution time of code blocks. It allows you to start a timer and then print the elapsed time in a human-readable format, including days, hours, minutes, and seconds.
Usage
-
Add the dependency to your
Cargo.toml
file:[] = "0.1"
-
Import and Use the library in your main.rs file.
use execution- ExecutionTime;