{"id":16687974,"url":"https://github.com/danielpclark/stop_watch","last_synced_at":"2025-04-10T00:33:43.816Z","repository":{"id":59156530,"uuid":"82985020","full_name":"danielpclark/stop_watch","owner":"danielpclark","description":"A stopwatch timer written in ruby.  Method `mark` to start and mark times.","archived":false,"fork":false,"pushed_at":"2019-08-24T04:04:47.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-15T02:46:45.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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}},"created_at":"2017-02-24T00:31:41.000Z","updated_at":"2019-08-24T04:04:49.000Z","dependencies_parsed_at":"2022-09-13T17:50:54.377Z","dependency_job_id":null,"html_url":"https://github.com/danielpclark/stop_watch","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fstop_watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fstop_watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fstop_watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fstop_watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielpclark","download_url":"https://codeload.github.com/danielpclark/stop_watch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219855406,"owners_count":16556095,"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":[],"created_at":"2024-10-12T15:26:14.945Z","updated_at":"2024-10-12T15:26:15.536Z","avatar_url":"https://github.com/danielpclark.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/stop_watch.svg)](http://badge.fury.io/rb/stop_watch)\n[![Code Climate](https://codeclimate.com/github/danielpclark/stop_watch/badges/gpa.svg)](https://codeclimate.com/github/danielpclark/stop_watch)\n[![Build Status](https://travis-ci.org/danielpclark/stop_watch.svg)](https://travis-ci.org/danielpclark/stop_watch)\n[![Inline docs](http://inch-ci.org/github/danielpclark/stop_watch.svg?branch=master)](http://inch-ci.org/github/danielpclark/stop_watch)\n[![SayThanks.io](https://img.shields.io/badge/SayThanks.io-%E2%98%BC-1EAEDB.svg)](https://saythanks.io/to/danielpclark)\n\n# StopWatch\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 Gemfile:\n\n```ruby\ngem 'stop_watch'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install stop_watch\n\n## Usage\n\n```ruby\nrequire 'stop_watch'\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## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/danielpclark/stop_watch.\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%2Fstop_watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielpclark%2Fstop_watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielpclark%2Fstop_watch/lists"}