Registry / utility / spin-sleep

spin-sleep

JSON →
library1.3.3rscratesunverified

Accurate sleeping by using native sleep when possible and spinning for precision.

# Cargo.toml [dependencies] spin_sleep = "1.3.3"
INSTALL
IMPORT
SIG · SPIN-SLEEP
S
spin-sleep
utilityrustv1.3.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sleep
use spin_sleep::sleep;

Sleeps for 100 milliseconds with high accuracy.

use spin_sleep::sleep; use std::time::Duration; fn main() { sleep(Duration::from_millis(100)); println!("Slept for 100ms"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
spin-sleep — cargo add spin-sleep · libregistry