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

#587 in Network programming

Download history 141/week @ 2024-11-27 116/week @ 2024-12-04 102/week @ 2024-12-11 29/week @ 2024-12-18 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

252 downloads per month
Used in 34 crates (22 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