Function ergo_sync::sleep_ms [] [src]

pub fn sleep_ms(millis: u64)

Just sleep for a certain number of milliseconds.

Equivalent of sleep(Duration::from_millis(millis))

This function exists in std::thread, so it created here instead.

Examples

// sleep for half a second
sleep_ms(500);