#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

#96 in Concurrency

Download history 1899/week @ 2024-09-15 2386/week @ 2024-09-22 1144/week @ 2024-09-29 2068/week @ 2024-10-06 2193/week @ 2024-10-13 2206/week @ 2024-10-20 2721/week @ 2024-10-27 2190/week @ 2024-11-03 1981/week @ 2024-11-10 2745/week @ 2024-11-17 2504/week @ 2024-11-24 2124/week @ 2024-12-01 1890/week @ 2024-12-08 1963/week @ 2024-12-15 3013/week @ 2024-12-22 1700/week @ 2024-12-29

8,653 downloads per month
Used in 17 crates (5 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
~23K SLoC