{"id":27786219,"url":"https://github.com/fluidgroup/swift-stopwatch","last_synced_at":"2025-04-30T15:58:08.149Z","repository":{"id":286822985,"uuid":"962672552","full_name":"FluidGroup/swift-stopwatch","owner":"FluidGroup","description":"A simple and lightweight stopwatch library for Swift.","archived":false,"fork":false,"pushed_at":"2025-04-08T14:04:22.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T15:22:06.190Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FluidGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2025-04-08T13:59:56.000Z","updated_at":"2025-04-08T14:05:01.000Z","dependencies_parsed_at":"2025-04-08T15:22:09.399Z","dependency_job_id":"d1d49e54-033c-4b8c-a76d-70d36a9477bb","html_url":"https://github.com/FluidGroup/swift-stopwatch","commit_stats":null,"previous_names":["fluidgroup/swift-stopwatch"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2Fswift-stopwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2Fswift-stopwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2Fswift-stopwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2Fswift-stopwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FluidGroup","download_url":"https://codeload.github.com/FluidGroup/swift-stopwatch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251737588,"owners_count":21635626,"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":"2025-04-30T15:58:07.503Z","updated_at":"2025-04-30T15:58:08.135Z","avatar_url":"https://github.com/FluidGroup.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stopwatch\n\nA simple and lightweight stopwatch library for Swift.\n\n## Features\n\n- High-precision timing using `mach_absolute_time()`\n- Non-copyable struct design\n- Simple and intuitive API\n- Microsecond and millisecond precision\n\n## Installation\n\n### Swift Package Manager\n\nAdd the following to your `Package.swift`:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/FluidGroup/swift-stopwatch.git\", from: \"1.0.0\")\n]\n```\n\n## Usage\n\n```swift\nimport Stopwatch\n\n// Create a stopwatch with a name\nlet stopwatch = Stopwatch(name: \"My Operation\")\n\n// Do some work...\n\n// End the stopwatch and print the elapsed time\nstopwatch.end()\n```\n\nThe output will show the elapsed time in both microseconds (μs) and milliseconds (ms).\n\n## Requirements\n\n- Swift 6.0 or later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluidgroup%2Fswift-stopwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluidgroup%2Fswift-stopwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluidgroup%2Fswift-stopwatch/lists"}