#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 5/week @ 2024-03-14 778/week @ 2024-03-21 282/week @ 2024-03-28 208/week @ 2024-04-04 683/week @ 2024-04-11 214/week @ 2024-04-18 217/week @ 2024-04-25 7/week @ 2024-05-02 205/week @ 2024-05-09 2353/week @ 2024-05-16 2893/week @ 2024-05-23 2855/week @ 2024-05-30 2737/week @ 2024-06-06 2094/week @ 2024-06-13 2861/week @ 2024-06-20 2650/week @ 2024-06-27

10,936 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