{"id":15429492,"url":"https://github.com/jedisct1/rust-precision","last_synced_at":"2025-04-13T08:21:39.331Z","repository":{"id":48992518,"uuid":"145619445","full_name":"jedisct1/rust-precision","owner":"jedisct1","description":"Low overhead, high precision measurement crate for Rust","archived":false,"fork":false,"pushed_at":"2025-03-17T04:27:19.000Z","size":54,"stargazers_count":16,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T00:11:08.207Z","etag":null,"topics":["benchmarking","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jedisct1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-21T21:04:55.000Z","updated_at":"2025-01-11T23:23:35.000Z","dependencies_parsed_at":"2023-12-19T04:22:30.612Z","dependency_job_id":"ba51dbcb-3ad6-4b2c-b90d-2ed83f73ee83","html_url":"https://github.com/jedisct1/rust-precision","commit_stats":{"total_commits":67,"total_committers":5,"mean_commits":13.4,"dds":0.05970149253731338,"last_synced_commit":"17ebd259a6e2a00a261d00ca2faab2fc793b00c1"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Frust-precision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Frust-precision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Frust-precision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedisct1%2Frust-precision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jedisct1","download_url":"https://codeload.github.com/jedisct1/rust-precision/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681614,"owners_count":21144719,"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":["benchmarking","rust"],"created_at":"2024-10-01T18:10:51.161Z","updated_at":"2025-04-13T08:21:39.291Z","avatar_url":"https://github.com/jedisct1.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Precision\n\nPrecision is a simple crate to perform measurements using hardware counters.\n\nIt is especially useful for performing micro-benchmarks.\n\n## [API documentation](https://docs.rs/precision)\n\n## Example\n\n```rust\nextern crate precision;\n\nlet p = precision::Precision::new(precision::Config::default()).unwrap();\n\nlet start = p.now();\nlet stop = p.now();\nlet elapsed1 = stop - start;\n\nlet start = p.now();\nlet stop = p.now();\nlet elapsed2 = stop - start;\n\nlet elapsed_total = elapsed1 + elapsed2;\nlet elapsed_total_secs = elapsed_total.as_secs_f64(\u0026p);\nlet hw_ticks = elapsed_total.ticks();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedisct1%2Frust-precision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjedisct1%2Frust-precision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedisct1%2Frust-precision/lists"}