{"id":16687981,"url":"https://github.com/danielpclark/stopwatch_cr","last_synced_at":"2026-05-21T10:33:30.968Z","repository":{"id":142007826,"uuid":"87963621","full_name":"danielpclark/stopwatch_cr","owner":"danielpclark","description":"A stopwatch timer for Crystal","archived":false,"fork":false,"pushed_at":"2017-04-11T17:57:12.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T07:22:03.576Z","etag":null,"topics":["crystal","stopwatch","timer"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/danielpclark.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-11T17:53:29.000Z","updated_at":"2018-03-09T13:41:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"099cd9ee-afd8-4bb4-9f50-2e101c81eda9","html_url":"https://github.com/danielpclark/stopwatch_cr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielpclark/stopwatch_cr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fstopwatch_cr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fstopwatch_cr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fstopwatch_cr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fstopwatch_cr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielpclark","download_url":"https://codeload.github.com/danielpclark/stopwatch_cr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fstopwatch_cr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33297520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["crystal","stopwatch","timer"],"created_at":"2024-10-12T15:26:16.668Z","updated_at":"2026-05-21T10:33:30.953Z","avatar_url":"https://github.com/danielpclark.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/danielpclark/stopwatch_cr.svg)](https://travis-ci.org/danielpclark/stopwatch_cr)\n[![SayThanks.io](https://img.shields.io/badge/SayThanks.io-%E2%98%BC-1EAEDB.svg)](https://saythanks.io/to/danielpclark)\n\n# Stopwatch\n\n_Ported from Ruby._\n\nA stopwatch timer where you hit `mark` to start the timer and continue to hit `mark` to mark times.\n\n## Installation\n\nAdd this line to your application's shard.yml:\n\n```crystal\ndependencies:\n  stopwatch:\n    github: danielpclark/stopwatch_cr\n    branch: master\n```\n\n## Usage\n\n```ruby\nrequire 'stopwatch'\n\nwatch = Stopwatch::Timer.new\n\nwatch.mark\n# =\u003e 2017-02-24 18:03:43 -0500\n\nwatch.time?\n# =\u003e false\n\nwatch.mark\n# =\u003e [44.973787791]\n\nwatch.time?\n# =\u003e true\n\nwatch.mark\n# =\u003e [44.973787791, 6.39862104]\n\nwatch.mark\n# =\u003e [44.973787791, 6.39862104, 4.238468485]\n\nwatch.h # human total time\n# =\u003e \"00:00:55\"\n\nwatch.ha # human average\n# =\u003e \"18.54 second average\"\n\nwatch.times\n# =\u003e [44.973787791, 6.39862104, 4.238468485]\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/danielpclark/stopwatch_cr.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielpclark%2Fstopwatch_cr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielpclark%2Fstopwatch_cr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielpclark%2Fstopwatch_cr/lists"}