{"id":17321776,"url":"https://github.com/avoidwork/precise","last_synced_at":"2025-04-14T16:02:02.720Z","repository":{"id":16391702,"uuid":"19142430","full_name":"avoidwork/precise","owner":"avoidwork","description":"Nanosecond timer for node.js","archived":false,"fork":false,"pushed_at":"2025-04-07T18:23:00.000Z","size":808,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T19:08:07.053Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avoidwork.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2014-04-25T10:27:09.000Z","updated_at":"2025-04-07T18:22:55.000Z","dependencies_parsed_at":"2024-02-14T18:29:04.375Z","dependency_job_id":"d9b33cbd-01f5-4a87-8763-13ec00e33be9","html_url":"https://github.com/avoidwork/precise","commit_stats":{"total_commits":139,"total_committers":2,"mean_commits":69.5,"dds":0.237410071942446,"last_synced_commit":"45db972aa8a0f97a6733cc9089c7bf60f2ecb217"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Fprecise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Fprecise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Fprecise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avoidwork%2Fprecise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avoidwork","download_url":"https://codeload.github.com/avoidwork/precise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248914011,"owners_count":21182356,"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-15T13:39:32.965Z","updated_at":"2025-04-14T16:02:02.684Z","avatar_url":"https://github.com/avoidwork.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# precise\n\nNanosecond timer for node.js\n\n## Using the factory\n\n```javascript\nimport {precise} from \"precise\";\nconst timer = precise().start();\nsetTimeout(() =\u003e console.log(timer.stop().diff()), 1000);\n```\n\n## Using the Class\n\n```javascript\nimport {Precise} from \"precise\";\nconst timer = new Precise().start();\nsetTimeout(() =\u003e console.log(timer.stop().diff()), 1000);\n```\n\n```javascript\nimport {Precise} from \"precise\";\nclass MyTimer extends Precise {}\n```\n\n## Testing\n\nPrecise has 100% code coverage with its tests.\n\n```console\n-------------|---------|----------|---------|---------|-------------------\nFile         | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s\n-------------|---------|----------|---------|---------|-------------------\nAll files    |     100 |      100 |     100 |     100 |                  \n precise.cjs |     100 |      100 |     100 |     100 |                  \n-------------|---------|----------|---------|---------|-------------------\n```\n\n## API\n\n### diff(ms = false)\n\nReturns the time delta between `start()` \u0026 `stop()`; setting optional parameter to `true` will return the delta as milliseconds\n\n### reset()\n\nReset a timer\n\n### start()\n\nStarts a timer\n\n### stop()\n\nStops a timer\n\n## License\n\nCopyright (c) 2023 Jason Mulligan\nLicensed under the BSD-3 license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favoidwork%2Fprecise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favoidwork%2Fprecise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favoidwork%2Fprecise/lists"}