Skip to main content

Module sleep

Module sleep 

Source

Re-exportsΒ§

use std::thread::sleep; πŸ”’
use std::time::Duration; πŸ”’
use std::time::Instant; πŸ”’
use tracing::Level; πŸ”’
use tracing::event; πŸ”’
use tracing::event; πŸ”’
use super::clock::BasicClock; πŸ”’
use super::clock::Clock; πŸ”’

StructsΒ§

MinimalSleeper
MinimalSleeper provides a facility for periodically sleeping such that on average we sleep for the requested amount of time, even though we don’t necessarily sleep on every call. The idea is to be efficient in the use of system calls.
SignedDuration πŸ”’

FunctionsΒ§

time_passes