#clock #time #fake #deterministic #testing #instant #sn-fake-clock

unmaintained fake_clock

Fake clock for deterministic testing of code depending on time

4 releases (2 breaking)

Uses old Rust 2015

0.3.1 Oct 22, 2020
0.3.0 Jan 5, 2018
0.2.0 Jul 25, 2017
0.1.0 Apr 5, 2017

#41 in #instant

Download history 226/week @ 2024-11-27 118/week @ 2024-12-04 136/week @ 2024-12-11 99/week @ 2024-12-18 6/week @ 2024-12-25 149/week @ 2025-01-01 9/week @ 2025-01-08 103/week @ 2025-01-15 25/week @ 2025-01-22 44/week @ 2025-01-29 71/week @ 2025-02-05 91/week @ 2025-02-12 52/week @ 2025-02-19 39/week @ 2025-02-26 145/week @ 2025-03-05 113/week @ 2025-03-12

384 downloads per month
Used in 4 crates (3 directly)

GPL-3.0 license

25KB
93 lines

This crate has been renamed to sn_fake_clock

https://crates.io/crates/sn_fake_clock


lib.rs:

fake_clock

A crate providing a virtual clock mimicking std::time::Instant's interface, enabling full control over the flow of time during testing.

No runtime deps