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

#574 in Network programming

Download history 222/week @ 2024-10-05 165/week @ 2024-10-12 90/week @ 2024-10-19 37/week @ 2024-10-26 76/week @ 2024-11-02 67/week @ 2024-11-09 40/week @ 2024-11-16 61/week @ 2024-11-23 155/week @ 2024-11-30 142/week @ 2024-12-07 50/week @ 2024-12-14 17/week @ 2024-12-21 62/week @ 2024-12-28 68/week @ 2025-01-04 550/week @ 2025-01-11 67/week @ 2025-01-18

748 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