{"id":58246,"library":"spin-sleep","title":"Spin Sleep","description":"Accurate sleeping by using native sleep when possible and spinning for precision.","status":"active","version":"1.3.3","language":"rust","source_language":null,"source_url":"https://github.com/alexheretic/spin-sleep","tags":["sleep","timing","spin-loop"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nspin_sleep = \"1.3.3\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add spin_sleep","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"sleep","correct":"use spin_sleep::sleep;"}],"quickstart":{"code":"use spin_sleep::sleep;\nuse std::time::Duration;\n\nfn main() {\n    sleep(Duration::from_millis(100));\n    println!(\"Slept for 100ms\");\n}","lang":"rust","description":"Sleeps for 100 milliseconds with high accuracy."},"warnings":[],"env_vars":null,"search_vec":"'accur':3 'loop':19 'nativ':7 'possibl':10 'precis':14 'sleep':2,4,8,15 'spin':1,12,18 'spin-loop':17 'time':16 'use':6","created_at":"2026-06-16T16:16:40.672391+00:00","updated_at":"2026-06-16T16:16:40.672391+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/alexheretic/spin-sleep","github":"https://github.com/alexheretic/spin-sleep","docs":"https://docs.rs/spin_sleep/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}