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

no-std atomic-time

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

3 releases

new 0.1.5 May 26, 2024
0.1.4 Dec 25, 2023

#276 in Concurrency

Download history 156/week @ 2024-02-04 341/week @ 2024-02-11 102/week @ 2024-02-18 1269/week @ 2024-02-25 1/week @ 2024-03-03 5/week @ 2024-03-10 7/week @ 2024-03-17 776/week @ 2024-03-24 430/week @ 2024-03-31 398/week @ 2024-04-07 393/week @ 2024-04-14 374/week @ 2024-04-21 7/week @ 2024-04-28 29/week @ 2024-05-05 1136/week @ 2024-05-12 2389/week @ 2024-05-19

3,727 downloads per month
Used in 13 crates (3 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
~19K SLoC