{"id":13438188,"url":"https://github.com/ellisonch/rust-stopwatch","last_synced_at":"2025-12-12T16:47:30.919Z","repository":{"id":25224550,"uuid":"28648883","full_name":"ellisonch/rust-stopwatch","owner":"ellisonch","description":"A stopwatch library for Rust.  Used to time things.","archived":false,"fork":false,"pushed_at":"2022-12-01T15:22:01.000Z","size":18,"stargazers_count":80,"open_issues_count":5,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-30T08:31:22.284Z","etag":null,"topics":["rust","rust-stopwatch","stopwatch","timing"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ellisonch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-30T23:20:13.000Z","updated_at":"2024-01-07T11:39:08.000Z","dependencies_parsed_at":"2023-01-14T02:21:25.498Z","dependency_job_id":null,"html_url":"https://github.com/ellisonch/rust-stopwatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellisonch%2Frust-stopwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellisonch%2Frust-stopwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellisonch%2Frust-stopwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ellisonch%2Frust-stopwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ellisonch","download_url":"https://codeload.github.com/ellisonch/rust-stopwatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244483548,"owners_count":20460136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","rust-stopwatch","stopwatch","timing"],"created_at":"2024-07-31T03:01:03.529Z","updated_at":"2025-12-12T16:47:25.888Z","avatar_url":"https://github.com/ellisonch.png","language":"Rust","funding_links":[],"categories":["Development tools","开发工具 Development tools","开发工具"],"sub_categories":["Profiling","分析 Profiling","Operating systems","剖析"],"readme":"# rust-stopwatch\nThis is a simple module used to time things in Rust.\n\n[![Build Status](https://travis-ci.org/ellisonch/rust-stopwatch.svg?branch=master)](https://travis-ci.org/ellisonch/rust-stopwatch)\n\n## Usage\nTo use, add the following line to `Cargo.toml` under `[dependencies]`:\n```toml\n\nstopwatch = \"0.0.7\"\n```\nor alternatively,\n```toml\nstopwatch = { git = \"https://github.com/ellisonch/rust-stopwatch.git\" }\n```\n\n## Example\n```rust\nextern crate stopwatch;\nuse stopwatch::{Stopwatch};\n// ...\nlet sw = Stopwatch::start_new();\n// do something that takes some time\nprintln!(\"Thing took {}ms\", sw.elapsed_ms());\n```\n\n## Methods\n```rust\nfn new() -\u003e Stopwatch\nfn start_new() -\u003e Stopwatch\nfn start(\u0026mut self)\nfn stop(\u0026mut self)\nfn reset(\u0026mut self)\nfn restart(\u0026mut self)\nfn is_running(\u0026self) -\u003e bool\nfn elapsed(\u0026self) -\u003e Duration\nfn elapsed_ms(\u0026self) -\u003e i64\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellisonch%2Frust-stopwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fellisonch%2Frust-stopwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fellisonch%2Frust-stopwatch/lists"}