{"id":70574,"library":"elapsed","title":"Elapsed","description":"Measure execution time of a block of code.","status":"active","version":"0.1.2","language":"rust","source_language":null,"source_url":"https://github.com/matklad/elapsed","tags":["timing","profiling","utility"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nelapsed = \"0.1.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add elapsed","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"elapsed","correct":"use elapsed::elapsed;"}],"quickstart":{"code":"use elapsed::elapsed;\n\nfn main() {\n    let duration = elapsed::elapsed!({\n        std::thread::sleep(std::time::Duration::from_secs(1));\n    });\n    println!(\"Took {:?}\", duration);\n}","lang":"rust","description":"Measures the time taken by a code block."},"warnings":[],"env_vars":null,"search_vec":"'block':7 'code':9 'elaps':1 'execut':3 'measur':2 'profil':11 'time':4,10 'util':12","created_at":"2026-06-17T18:16:25.462209+00:00","updated_at":"2026-06-17T18:16:25.462209+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/matklad/elapsed","github":"https://github.com/matklad/elapsed","docs":"https://docs.rs/elapsed/","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}}