{"id":58485,"library":"cpu-time","title":"CPU Time","description":"A small crate for measuring CPU time (user and system) of processes and threads.","status":"active","version":"1.0.0","language":"rust","source_language":null,"source_url":"https://github.com/tailhook/cpu-time","tags":["cpu","time","profiling","performance"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ncpu-time = \"1.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add cpu-time","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"ProcessTime","correct":"use cpu_time::ProcessTime;"}],"quickstart":{"code":"use cpu_time::ProcessTime;\n\nlet start = ProcessTime::now();\n// ... some computation ...\nlet cpu_time = start.elapsed();\nprintln!(\"CPU time: {:?}\", cpu_time);","lang":"rust","description":"Measure CPU time of a code block"},"warnings":[{"fix":"Check platform support before relying on this crate","message":"CPU time measurement may not be available on all platforms (e.g., some embedded systems)","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'cpu':1,8,17 'crate':5 'measur':7 'perform':20 'process':14 'profil':19 'small':4 'system':12 'thread':16 'time':2,9,18 'user':10","created_at":"2026-06-16T16:25:39.703647+00:00","updated_at":"2026-06-16T16:25:39.703647+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/tailhook/cpu-time","github":"https://github.com/tailhook/cpu-time","docs":"https://docs.rs/cpu-time/","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}}