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

#632 in Network programming

Download history 64/week @ 2024-11-21 148/week @ 2024-11-28 93/week @ 2024-12-05 105/week @ 2024-12-12 32/week @ 2024-12-19 63/week @ 2024-12-26 14/week @ 2025-01-02 576/week @ 2025-01-09 98/week @ 2025-01-16 20/week @ 2025-01-23 8/week @ 2025-01-30 27/week @ 2025-02-06 37/week @ 2025-02-13 33/week @ 2025-02-20 89/week @ 2025-02-27 67/week @ 2025-03-06

229 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