9 releases

0.0.9 Jan 11, 2025
0.0.8 Jan 11, 2025
0.0.5 Oct 11, 2024
0.0.2 Sep 30, 2024

#175 in Date and time

Download history 59/week @ 2024-12-25 18/week @ 2025-01-01 573/week @ 2025-01-08 94/week @ 2025-01-15 33/week @ 2025-01-22 5/week @ 2025-01-29 27/week @ 2025-02-05 36/week @ 2025-02-12 28/week @ 2025-02-19 80/week @ 2025-02-26 82/week @ 2025-03-05 62/week @ 2025-03-12 15/week @ 2025-03-19 74/week @ 2025-03-26 105/week @ 2025-04-02 32/week @ 2025-04-09

240 downloads per month
Used in 43 crates (27 directly)

MIT license

20KB
301 lines

monotonic-time-rs

Crates.io Documentation License

monotonic-time-rs is a Rust library dedicated to managing monotonic absolute timestamps with millisecond precision. It is primarily utilized for measuring latency and serializing monotonic time data for efficient transmission over networks.

🚀 Features

  • Monotonic Timestamps: Represent absolute time points in milliseconds.
  • Durations: Safely compute elapsed time between timestamps.
  • Lower Bits Extraction: Efficiently handle partial timestamp data.
  • Custom Time Providers: Implement your own monotonic clock sources.

📦 Installation

Add monotonic-time-rs to your Cargo.toml:

[dependencies]
monotonic-time-rs = "^0.0.1"

Dependencies

~0–2.3MB
~43K SLoC