{"id":15010457,"url":"https://github.com/dm3/stopwatch","last_synced_at":"2025-04-09T22:51:25.641Z","repository":{"id":22009463,"uuid":"94705888","full_name":"dm3/stopwatch","owner":"dm3","description":"A Clojure/script stopwatch","archived":false,"fork":false,"pushed_at":"2022-06-16T12:59:53.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T00:41:39.147Z","etag":null,"topics":["clj","cljs","clock","clojure","clojurescript","library","stopwatch","timer"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/dm3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-18T18:37:56.000Z","updated_at":"2022-06-16T12:59:56.000Z","dependencies_parsed_at":"2022-07-24T20:16:22.659Z","dependency_job_id":null,"html_url":"https://github.com/dm3/stopwatch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dm3%2Fstopwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dm3%2Fstopwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dm3%2Fstopwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dm3%2Fstopwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dm3","download_url":"https://codeload.github.com/dm3/stopwatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247666016,"owners_count":20975788,"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":["clj","cljs","clock","clojure","clojurescript","library","stopwatch","timer"],"created_at":"2024-09-24T19:34:22.165Z","updated_at":"2025-04-09T22:51:25.616Z","avatar_url":"https://github.com/dm3.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stopwatch\n\n[![Build Status](https://travis-ci.org/dm3/stopwatch.png?branch=master)](https://travis-ci.org/dm3/stopwatch)\n\nA Clojure/script stopwatch implementation.\n\nUses `System/nanoTime` on the JVM.\n\nUses the most precise mechanism depending on the Javascript runtime:\n\n  * [Performance.now](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now)\n  * [process.hrtime](https://nodejs.org/api/process.html#process_process_hrtime_time)\n  * [js/Date](https://docs.microsoft.com/en-us/scripting/javascript/reference/date-object-javascript)\n\n## Usage\n\nAdd the following dependency to your project.clj or build.boot:\n\n```clojure\n[dm3/stopwatch \"0.1.1\"]\n```\n\nthen require the namespace:\n\n```clojure\n(require '[stopwatch.core :as stopwatch])\n```\n\nUsing synchronously:\n\n```clojure\n(let [elapsed (stopwatch/start)]\n  (do-work)\n  (println \"Elapsed: \" (elapsed) \"ns\"))\n```\n\nand asynchronously, using core.async:\n\n```clojure\n(let [elapsed (stopwatch/start)]\n  (go\n    (\u003c! (do-work))\n    (println \"Elapsed: \" (elapsed) \"ns\")))\n```\n\n## License\n\nCopyright © 2017 Vadim Platonov\n\nDistributed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdm3%2Fstopwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdm3%2Fstopwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdm3%2Fstopwatch/lists"}