#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

#39 in #instant

Download history 151/week @ 2024-09-27 55/week @ 2024-10-04 111/week @ 2024-10-11 100/week @ 2024-10-18 77/week @ 2024-10-25 96/week @ 2024-11-01 172/week @ 2024-11-08 117/week @ 2024-11-15 104/week @ 2024-11-22 194/week @ 2024-11-29 149/week @ 2024-12-06 149/week @ 2024-12-13 55/week @ 2024-12-20 118/week @ 2024-12-27 35/week @ 2025-01-03 27/week @ 2025-01-10

240 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