2 unstable releases

0.5.0 Apr 29, 2023
0.4.0 Nov 5, 2019

#3 in #depending

Download history 124/week @ 2025-10-14 155/week @ 2025-10-21 414/week @ 2025-10-28 252/week @ 2025-11-04 1545/week @ 2025-11-11 1066/week @ 2025-11-18 125/week @ 2025-11-25 103/week @ 2025-12-02 167/week @ 2025-12-09 112/week @ 2025-12-16 59/week @ 2025-12-23 88/week @ 2025-12-30 90/week @ 2026-01-06 94/week @ 2026-01-13 127/week @ 2026-01-20 213/week @ 2026-01-27

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

MIT OR BSD-3-Clause

12KB
212 lines

fake_clock

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


fake_instant

crates.io docs.rs gh-actions CI

This crate supplies a FakeInstant struct, which mimics the interface of std::time::Instant and enables full control over the flow of time as perceived by the code during testing.

License

This (former) SAFE Network library is dual-licensed under the Modified BSD (LICENSE-BSD https://opensource.org/licenses/BSD-3-Clause) or the MIT license (LICENSE-MIT http://opensource.org/licenses/MIT) at your option.

Contribution

Copyrights in the SAFE Network are retained by their contributors. No copyright assignment is required to contribute to this project.

No runtime deps