{"id":30665384,"url":"https://github.com/janygee/jgswifttimer","last_synced_at":"2026-05-10T16:14:54.058Z","repository":{"id":56915927,"uuid":"387335190","full_name":"JanyGee/JGSwiftTimer","owner":"JanyGee","description":"利用GCD定时器，解决Timer时间不准的情况","archived":false,"fork":false,"pushed_at":"2021-07-19T08:20:09.000Z","size":125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-01T17:12:16.890Z","etag":null,"topics":["ios","nstimer","objective-c","swift","timer"],"latest_commit_sha":null,"homepage":"https://github.com/JanyGee/JGSwiftTimer","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/JanyGee.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}},"created_at":"2021-07-19T04:08:55.000Z","updated_at":"2021-07-19T08:28:51.000Z","dependencies_parsed_at":"2022-08-21T03:50:35.699Z","dependency_job_id":null,"html_url":"https://github.com/JanyGee/JGSwiftTimer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JanyGee/JGSwiftTimer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanyGee%2FJGSwiftTimer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanyGee%2FJGSwiftTimer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanyGee%2FJGSwiftTimer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanyGee%2FJGSwiftTimer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JanyGee","download_url":"https://codeload.github.com/JanyGee/JGSwiftTimer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JanyGee%2FJGSwiftTimer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273032938,"owners_count":25034069,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ios","nstimer","objective-c","swift","timer"],"created_at":"2025-08-31T20:21:35.222Z","updated_at":"2026-05-10T16:14:53.986Z","avatar_url":"https://github.com/JanyGee.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\" \u003e\n  \u003cimg src=\"https://github.com/JanyGee/JGSwiftTimer/blob/main/Source/icon.png\"\u003e\n\u003c/p\u003e\n\n# JGSwiftTimer\n[![Version](https://img.shields.io/cocoapods/v/JGSwiftTimer.svg?style=flat)](http://cocoapods.org/pods/JGSwiftTimer)\n[![License](https://img.shields.io/cocoapods/l/JGSwiftTimer.svg?style=flat)](http://cocoapods.org/pods/JGSwiftTimer)\n[![Platform](https://img.shields.io/cocoapods/p/JGSwiftTimer.svg?style=flat)](http://cocoapods.org/pods/JGSwiftTimer)\n[![Swift-5.0](http://img.shields.io/badge/Swift-5.0-blue.svg)]()\n\nJGSwiftTimer is a lightweight timer extension for Swift.     [OC](https://github.com/JanyGee/JGOCTimer)\n\n## Installation\n\nJGSwiftTimer is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"JGSwiftTimer\"\n```\n\n## Usage\n\n```swift\nimport JGTimer.h\n```\n\n## Methods\n**executeTask(start: TimeInterval, interval: TimeInterval, repeats: Bool, async: Bool, task: @escaping ()-\u003eVoid) -\u003e String?**\n```Swift\nJGTimer.executeTask(start: 3, interval: 1, repeats: true, async: true, task: {self.doTask()})\n```\n\n**executeTask(start: TimeInterval, interval: TimeInterval, repeats: Bool, async: Bool, target: AnyObject, selector: Selector) -\u003e String?**\n```Swift\nJGTimer.executeTask(start: 1, interval: 1, repeats: true, async: true, target: self, selector: #selector(doTask))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanygee%2Fjgswifttimer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanygee%2Fjgswifttimer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanygee%2Fjgswifttimer/lists"}