#fake #clock #time #time-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
Download history 46/week @ 2023-06-04 17/week @ 2023-06-11 106/week @ 2023-06-18 61/week @ 2023-06-25 63/week @ 2023-07-02 105/week @ 2023-07-09 55/week @ 2023-07-16 60/week @ 2023-07-23 26/week @ 2023-07-30 54/week @ 2023-08-06 73/week @ 2023-08-13 114/week @ 2023-08-20 95/week @ 2023-08-27 71/week @ 2023-09-03 48/week @ 2023-09-10 45/week @ 2023-09-17

277 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