{"id":20721487,"url":"https://github.com/cleancut/rusty_time","last_synced_at":"2025-09-01T09:36:57.902Z","repository":{"id":57666057,"uuid":"347791003","full_name":"CleanCut/rusty_time","owner":"CleanCut","description":"A simple timer","archived":false,"fork":false,"pushed_at":"2023-11-11T00:13:47.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-19T12:25:10.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CleanCut.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"license/APACHE","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":"2021-03-15T00:38:15.000Z","updated_at":"2025-01-29T16:38:35.000Z","dependencies_parsed_at":"2024-11-17T03:28:09.546Z","dependency_job_id":"8ff6c02e-0f2f-4b9c-921c-05ec84bf188f","html_url":"https://github.com/CleanCut/rusty_time","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"283577e4b20d8ce282bde07708892931d5a749cf"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/CleanCut/rusty_time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanCut%2Frusty_time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanCut%2Frusty_time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanCut%2Frusty_time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanCut%2Frusty_time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CleanCut","download_url":"https://codeload.github.com/CleanCut/rusty_time/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanCut%2Frusty_time/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273100584,"owners_count":25045698,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-17T03:28:03.330Z","updated_at":"2025-09-01T09:36:57.879Z","avatar_url":"https://github.com/CleanCut.png","language":"Rust","funding_links":["https://github.com/sponsors/CleanCut"],"categories":[],"sub_categories":[],"readme":"# Rusty Time\n\nA simple timer. See also the [reference docs on docs.rs](https://docs.rs/rusty_time/latest/rusty_time/)\n\n## Quick Start\n\nAdd `rusty_timer` to your `Cargo.toml` with:\n\n```shell\ncargo add rusty_timer\n```\n\nThen use it like this:\n\n```rust\nfn main() {\n    let mut timer = Timer::new(Duration::from_secs_f32(1.5));\n\n    let mut start_time = Instant::now();\n    loop {\n        timer.tick(start_time.elapsed());\n        start_time = Instant::now();\n        println!(\n            \"Time on timer: {:.2}s ({:.1}%)\",\n            timer.remaining().as_secs_f32(),\n            timer.percent_left() * 100.0\n        );\n        if timer.just_finished() {\n            break;\n        }\n    }\n    println!(\"Timer finished!\");\n}\n```\n\n## Contribution\n\nAll contributions are assumed to be dual-licensed under MIT/Apache-2.\n\n## License\n\nDistributed under the terms of both the MIT license and the Apache License (Version 2.0).\n\nSee [license/APACHE](license/APACHE) and [license/MIT](license/MIT).\n\n## Sponsor\n\nIf you like `rusty_time`, please consider [sponsoring me](https://github.com/sponsors/CleanCut) on GitHub. 💖\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleancut%2Frusty_time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleancut%2Frusty_time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleancut%2Frusty_time/lists"}