{"id":18189852,"url":"https://github.com/bmedicke/tim","last_synced_at":"2025-04-02T05:32:47.283Z","repository":{"id":57693028,"uuid":"483965520","full_name":"bmedicke/tim","owner":"bmedicke","description":"multifunction command line timer ⏳👨‍💻","archived":true,"fork":false,"pushed_at":"2023-02-25T11:43:11.000Z","size":28,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T17:22:32.697Z","etag":null,"topics":["cli","command-line","command-line-tool","go","golang","tcell","timer","utimer"],"latest_commit_sha":null,"homepage":"","language":"Go","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/bmedicke.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-04-21T08:18:32.000Z","updated_at":"2024-11-05T10:57:58.000Z","dependencies_parsed_at":"2024-06-20T16:23:44.667Z","dependency_job_id":"98d23b1a-b619-45b3-8475-3a34e7656781","html_url":"https://github.com/bmedicke/tim","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmedicke%2Ftim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmedicke%2Ftim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmedicke%2Ftim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmedicke%2Ftim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmedicke","download_url":"https://codeload.github.com/bmedicke/tim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246763814,"owners_count":20829797,"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":["cli","command-line","command-line-tool","go","golang","tcell","timer","utimer"],"created_at":"2024-11-03T04:04:18.602Z","updated_at":"2025-04-02T05:32:47.033Z","avatar_url":"https://github.com/bmedicke.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tim\n\nTim is a (not yet) multifunction command line timer with the following features:\n\n* stopwatch\n\n## installation\n\n```sh\ngo install github.com/bmedicke/tim@latest\n```\n\n## usage\n\n* `-s` stopwatch mode\n* `-c` countdown mode\n* `-t` timer mode (counts up)\n* `-q` quite flag, surpresses output\n* `-x` timer/countdown mode exits with 0 when pressing *q*\n\n### `-s` stopwatch mode\n\n```sh\n# using the return value:\ntim -s \u0026\u0026 echo yes || echo no\n# q returns 0.\n# ctrl-c returns 127.\n```\n\n### `-c` countdown mode\n\n```sh\ntim -c 10s\ntim -c 10h5s # not all values need to be specified.\ntim -c 1m1s # order does not matter.\n\n# using the return value:\ntim -c 10s \u0026\u0026 echo timer ran out || echo timer stopped early\n# q returns 1 because the countdown was stopped early.\n# ctrl-c returns 127.\n\n# making q return 0:\ntim -c 10s -x ; echo $?\n# ctrl-c still returns 127.\n```\n\n## development\n\n```sh\n# use the pre-commit hook:\ngit config --local core.hooksPath .githooks\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmedicke%2Ftim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmedicke%2Ftim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmedicke%2Ftim/lists"}