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

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

Functions

Gets elapsed time in milliseconds since UNIX EPOCH.