{"id":73299,"library":"stopwatch2","title":"Stopwatch2","description":"A stopwatch library for timing things, rewritten and simplified from the original stopwatch crate.","status":"active","version":"2.0.0","language":"rust","source_language":null,"source_url":"https://github.com/jojolepro/rust-stopwatch","tags":["timing","stopwatch","utility"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nstopwatch2 = \"2.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add stopwatch2","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Stopwatch","correct":"use stopwatch2::Stopwatch;"}],"quickstart":{"code":"use stopwatch2::Stopwatch;\nuse std::thread::sleep;\nuse std::time::Duration;\n\nfn main() {\n    let mut sw = Stopwatch::start_new();\n    sleep(Duration::from_secs(1));\n    sw.stop();\n    println!(\"Elapsed: {:?}\", sw.elapsed());\n}","lang":"rust","description":"Time a one-second sleep using Stopwatch."},"warnings":[],"env_vars":null,"search_vec":"'crate':15 'librari':4 'origin':13 'rewritten':8 'simplifi':10 'stopwatch':3,14,17 'stopwatch2':1 'thing':7 'time':6,16 'util':18","created_at":"2026-06-17T18:49:40.702281+00:00","updated_at":"2026-06-17T18:49:40.702281+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/jojolepro/rust-stopwatch","github":"https://github.com/jojolepro/rust-stopwatch","docs":"https://docs.rs/stopwatch2/","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-17","next_check":"2026-12-14","install_tag":null}}