Crate faketime

Crate faketime 

Source
Expand description

This module just reexports faketime::system or faketime::faketime, depending on whether on not the rust cfg disable_faketime is set. See details in the module document of faketime::faketime.

Re-exports§

pub use crate::faketime::disable;
pub use crate::faketime::enable;
pub use crate::faketime::millis_tempfile;
pub use crate::faketime::unix_time;
pub use crate::faketime::write_millis;

Modules§

faketime
Provides a method unix_time which returns elapsed time since UNIX EPOCH. The returned time can be faked in each thread separately.
system
This is the fallback implementation when cfg disable_faketime is set.

Functions§

unix_time_as_millis
Gets elapsed time in milliseconds since UNIX EPOCH.