Macro libnotcurses_sys::sleep
source · macro_rules! sleep { ($s:expr) => { ... }; ($s:expr, $ms:expr) => { ... }; ($s:expr, $ms:expr, $us:expr) => { ... }; ($s:expr, $ms:expr, $us:expr, $ns:expr) => { ... }; }
Expand description
Sleep for a given time with custom precision.
[$s seconds, $ms milliseconds, $us microseconds, $ns nanoseconds]
Example
// sleeps for 0 seconds + 30 milliseconds
sleep![0, 30]