{"id":32326739,"url":"https://github.com/comyar/chronos","last_synced_at":"2025-10-23T13:45:03.791Z","repository":{"id":29622476,"uuid":"33163227","full_name":"comyar/Chronos","owner":"comyar","description":":hourglass: Grand Central Dispatch Utilities","archived":true,"fork":false,"pushed_at":"2024-08-06T00:43:30.000Z","size":106,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-08-06T02:51:36.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":false,"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/comyar.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":"2015-03-31T03:39:57.000Z","updated_at":"2024-08-06T00:43:42.000Z","dependencies_parsed_at":"2022-09-03T14:51:46.208Z","dependency_job_id":null,"html_url":"https://github.com/comyar/Chronos","commit_stats":null,"previous_names":["olympus-library/chronos"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/comyar/Chronos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comyar%2FChronos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comyar%2FChronos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comyar%2FChronos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comyar%2FChronos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comyar","download_url":"https://codeload.github.com/comyar/Chronos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comyar%2FChronos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280630811,"owners_count":26363661,"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-10-23T02:00:06.710Z","response_time":142,"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":[],"created_at":"2025-10-23T13:45:01.203Z","updated_at":"2025-10-23T13:45:03.781Z","avatar_url":"https://github.com/comyar.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DEPRECATED IN FAVOR OF [Chronos-Swift](https://github.com/comyarzaheri/Chronos-Swift)\n\n![](header.png)\n\n# Overview\n\nChronos is a collection of useful Grand Central Dispatch utilities. If you have any specific requests or ideas for new utilities, don't hesitate to create a new issue.\n\n## Utilities\n\n* **DispatchTimer** - A repeating timer that fires according to a static interval, e.g. \"Fire every 5 seconds\".\n* **VariableTimer** - A repeating timer that allows you to vary the interval between firings, e.g. \"Fire according to the function `interval = 2 * count`.\" \n\n# Usage \n\n### Quick Start\n\n##### CocoaPods\n\nAdd the following to your Podfile:\n\n```ruby\npod 'Chronos'\n```\n##### Carthage \n\nAdd the following to your Cartfile:\n\n```ruby\ngithub \"comyarzaheri/Chronos\" \"master\"\n```\n\n### Using a Dispatch Timer\n\n```objective-c\n#import \u003cChronos/Chronos.h\u003e\n\n/** Create and start a timer */\nCHRDispatchTimer timer = [CHRDispatchTimer timerWithInterval:1.0 \n                                              executionBlock:^(CHRDispatchTimer *__weak timer, NSUInteger invocation) {\n  NSLog(@\"%@\", @\"Execute repeating task here\");\n}];\n[timer start:YES]; // Fire timer immediately\n\n/** Pausing the timer */\n[timer pause];\n\n/** Permanently canceling the timer */\n[timer cancel];\n\n```\n\n### Using a Variable Timer\n\n```objective-c\n#import \u003cChronos/Chronos.h\u003e\n\n/** Create and start a timer */\nCHRVariableTimer *timer = [CHRVariableTimer timerWithIntervalProvider:^NSTimeInterval(CHRVariableTimer *__weak timer, NSUInteger nextInvocation) {\n    return 2 * count; // Return interval according to function\n} executionBlock:^(__weak id\u003cCHRRepeatingTimer\u003e timer, NSUInteger invocation) {\n    NSLog(@\"Execute repeating task here\");\n}];\n[timer start:YES]; // Fire timer immediately\n\n/** Pausing the timer */\n[timer pause];\n\n/** Permanently canceling the timer */\n[timer cancel];\n```\n\n# Requirements\n\n* iOS 7.0 or higher\n* OS X 10.9 or higher\n\n# License \n\nChronos is available under the [MIT License](LICENSE).\n\n# Contributors\n\n* [@comyar](https://github.com/comyar)\n* [@schun93](https://github.com/schun93)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomyar%2Fchronos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomyar%2Fchronos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomyar%2Fchronos/lists"}