Crates.io | ms_to_secs |
lib.rs | ms_to_secs |
version | 0.1.3 |
source | src |
created_at | 2024-10-28 18:47:48.562889 |
updated_at | 2024-11-21 02:43:41.90705 |
description | A simple Rust library to convert milliseconds to seconds. |
homepage | |
repository | |
max_upload_size | |
id | 1425938 |
size | 2,691 |
ms_to_secs is a simple Rust library that converts milliseconds to seconds as an f64 value. This crate is designed for quick, lightweight time conversions, making it useful for time-based calculations in various applications.
To use ms_to_secs, add it to your Cargo.toml:
[dependencies] ms_to_secs = "0.1.0"
use ms_to_secs::ms_to_secs;
fn main() {
let seconds = ms_to_secs(1500);
println!("1500 milliseconds is {} seconds", seconds); // Outputs: 1.5 seconds
}
Converts milliseconds (u64) to seconds as a f64 value Lightweight and easy to use
This project is licensed under the MIT License
bensatlantik