#atomic #no-std #atomic-duration #atomic-instant #atomic-systemtime

no-std atomic-time

AtomicDuration, AtomicOptionDuration, AtomicSystemTime, AtomicOptionSystemTime, AtomicInstant and AtomicOptionInstant for Rust

3 releases

0.1.5 May 26, 2024
0.1.4 Dec 25, 2023

#97 in Concurrency

Download history 2635/week @ 2024-10-26 2241/week @ 2024-11-02 1985/week @ 2024-11-09 2739/week @ 2024-11-16 2494/week @ 2024-11-23 2153/week @ 2024-11-30 1903/week @ 2024-12-07 1845/week @ 2024-12-14 3064/week @ 2024-12-21 1866/week @ 2024-12-28 2830/week @ 2025-01-04 2513/week @ 2025-01-11 2774/week @ 2025-01-18 4176/week @ 2025-01-25 2987/week @ 2025-02-01 4785/week @ 2025-02-08

15,053 downloads per month
Used in 24 crates (6 directly)

MIT/Apache

92KB
1.5K SLoC

Atomic Time

AtomicDuration, AtomicOptionDuration, AtomicSystemTime, AtomicOptionSystemTime, AtomicInstant and AtomicOptionInstant for Rust.

github LoC Build codecov

docs.rs crates.io crates.io license

English | 简体中文

Installation

[dependencies]
atomic-time = "0.1"

Test

  • Rust test

    cargo test
    
  • miri test

    cargo miri test
    

Benchmarks

cargo bench

License

atomic-time is under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2023 Al Liu.

Dependencies

~1MB
~22K SLoC