{"id":25195939,"url":"https://github.com/simplisticated/eternal","last_synced_at":"2025-05-08T17:10:50.316Z","repository":{"id":56910103,"uuid":"45937005","full_name":"simplisticated/Eternal","owner":"simplisticated","description":"The way to manage time in Swift.","archived":false,"fork":false,"pushed_at":"2017-10-05T11:57:08.000Z","size":64,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-08T17:03:58.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/simplisticated.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-11-10T20:02:19.000Z","updated_at":"2021-12-23T11:00:09.000Z","dependencies_parsed_at":"2022-08-20T20:20:38.590Z","dependency_job_id":null,"html_url":"https://github.com/simplisticated/Eternal","commit_stats":null,"previous_names":["igormatyushkin014/eternal"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FEternal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FEternal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FEternal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FEternal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplisticated","download_url":"https://codeload.github.com/simplisticated/Eternal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253112073,"owners_count":21856069,"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-02-10T01:39:10.815Z","updated_at":"2025-05-08T17:10:48.359Z","avatar_url":"https://github.com/simplisticated.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\" \u003e\n  \u003cimg src=\"https://github.com/igormatyushkin014/Eternal/blob/master/Logo/logo-1024-300.png\" alt=\"Eternal\" title=\"Eternal\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://swift.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/Swift-4-orange.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://cocoapods.org\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/v/Eternal.svg?maxAge=2592000\"\u003e\u003c/a\u003e\n\u003ca href=\"https://cocoapods.org\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/dt/Eternal.svg?maxAge=2592000\"\u003e\u003c/a\u003e\n\u003ca href=\"https://tldrlegal.com/license/mit-license\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# At a Glance\n\nThe way to manage time in Swift.\n\n## How To Get Started\n\n- Copy content of `Eternal` folder to your project.\n\nor\n\n- Use `Eternal` cocoapod\n\n## Requirements\n\n* iOS 9.0 and later\n* Xcode 9.0 and later\n* Swift 4\n\n## Usage\n\n```swift\n/*\n * Create timer.\n */\nlet timer1 = ETTimer()\n\n\n/*\n * Start timer with block.\n * On every call of block you will get number of ticks\n * and time interval which has gone from the start.\n */\n\ntimer1.startWithTimeInterval(1.0, repeats: true) { (timer, tickCount, timeIntervalSinceStart) -\u003e Void in\n    NSLog(\"Timer did tick %d times. %.0f seconds has gone from the launch.\", tickCount, timeIntervalSinceStart)\n}\n\n\n/*\n * Example of timer which will tick one time only.\n */\n\ntimer1.startWithTimeInterval(1.0, repeats: false) { (timer, tickCount, timeIntervalSinceStart) -\u003e Void in\n    NSLog(\"Timer did tick\")\n}\n\n\n/*\n * When you don't need timer to continue ticks,\n * call stop() method:\n */\n\ntimer1.stop()\n\n\n/*\n * There's also a shortened form of timer creation:\n */\n\nETTimer.every(1.0) { (timer, tickCount, timeIntervalSinceStart) -\u003e Void in\n    // Do something every second\n}\n\n\n/*\n * Similar method for timer that will perform one time only:\n */\n\nETTimer.after(1.0) { (timer, tickCount, timeIntervalSinceStart) -\u003e Void in\n    // Do something one time\n}\n\n```\n\n## License\n\n`Eternal` is available under the MIT license. See the `LICENSE` file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplisticated%2Feternal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplisticated%2Feternal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplisticated%2Feternal/lists"}