{"id":21318366,"url":"https://github.com/mezhevikin/measure","last_synced_at":"2025-07-12T02:33:21.766Z","repository":{"id":63917862,"uuid":"538995753","full_name":"mezhevikin/Measure","owner":"mezhevikin","description":"⏲ A tiny package to measure code execution time. Only 20 lines of code.","archived":false,"fork":false,"pushed_at":"2023-07-03T07:04:56.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-17T17:36:08.762Z","etag":null,"topics":["banchmarks","duration","execution","ios","lightweight","macos","measure","measurement","operation","swift","swift5","time"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/mezhevikin.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}},"created_at":"2022-09-20T13:11:26.000Z","updated_at":"2023-12-12T13:05:02.000Z","dependencies_parsed_at":"2024-01-12T18:39:01.737Z","dependency_job_id":"814af9b7-9552-4f9c-93ec-682b985fee56","html_url":"https://github.com/mezhevikin/Measure","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"ea854f030cc775e3b851d15bdec91cd49e92a1fc"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezhevikin%2FMeasure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezhevikin%2FMeasure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezhevikin%2FMeasure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezhevikin%2FMeasure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mezhevikin","download_url":"https://codeload.github.com/mezhevikin/Measure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225787454,"owners_count":17524108,"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":["banchmarks","duration","execution","ios","lightweight","macos","measure","measurement","operation","swift","swift5","time"],"created_at":"2024-11-21T19:12:31.740Z","updated_at":"2024-11-21T19:12:32.413Z","avatar_url":"https://github.com/mezhevikin.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Measure\n\n⏱️ A tiny package to measure code execution time.\n\n```swift\nlet measure = Measure(key: \"create-user\")\nlet user = User()\nmeasure.finish()\n```\n### Console\n\n```swift\n// ⏱️ Measure [create-user]: 0.00521 sec.\n```\n\n### Measure async request\n\n```swift\nlet measure = Measure(key: \"request\")\nlet url = URL(string: \"https://httpbin.org/get\")!\nURLSession.shared.dataTask(with: url) { _, _, _ in\n    let time = measure.finish()\n    Analytics.send(event: \"request\", [\"time\" =\u003e time])\n}.resume()\n```\n        \n### Swift Package Manager\n\n```\nhttps://github.com/mezhevikin/Measure.git\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmezhevikin%2Fmeasure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmezhevikin%2Fmeasure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmezhevikin%2Fmeasure/lists"}