{"id":67435,"library":"trice","title":"Trice","description":"A minimal replacement for std::time::Instant that works in WASM for web and Node.js.","status":"active","version":"0.4.0","language":"rust","source_language":null,"source_url":"https://github.com/surrealdb/trice","tags":["wasm","time","instant","web","node"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntrice = \"0.4.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add trice","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Instant","correct":"use trice::Instant;"}],"quickstart":{"code":"use trice::Instant;\n\nfn main() {\n    let start = Instant::now();\n    // ... do something ...\n    let elapsed = start.elapsed();\n    println!(\"Elapsed: {:?}\", elapsed);\n}","lang":"rust","description":"Measures elapsed time using trice::Instant."},"warnings":[],"env_vars":null,"search_vec":"'instant':8,19 'minim':3 'node':21 'node.js':16 'replac':4 'std':6 'time':7,18 'trice':1 'wasm':12,17 'web':14,20 'work':10","created_at":"2026-06-17T17:37:02.904561+00:00","updated_at":"2026-06-17T17:37:02.904561+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/surrealdb/trice","github":"https://github.com/surrealdb/trice","docs":"https://docs.rs/trice/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","async"],"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}}