#clock #time #fake #deterministic #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

#34 in #instant

Download history 125/week @ 2024-01-15 85/week @ 2024-01-22 140/week @ 2024-01-29 98/week @ 2024-02-19 114/week @ 2024-02-26 28/week @ 2024-03-04 148/week @ 2024-03-11 119/week @ 2024-03-18 73/week @ 2024-03-25 962/week @ 2024-04-01 127/week @ 2024-04-08 23/week @ 2024-04-15 58/week @ 2024-04-22 30/week @ 2024-04-29

264 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