{"id":19850507,"url":"https://github.com/mroth/jitter","last_synced_at":"2025-05-01T23:30:19.043Z","repository":{"id":37003042,"uuid":"254487228","full_name":"mroth/jitter","owner":"mroth","description":":dancers: Go timers with random jitter","archived":false,"fork":false,"pushed_at":"2025-01-24T15:51:55.000Z","size":43,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T19:11:18.448Z","etag":null,"topics":["go","golang","random","ticker","timer"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mroth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-04-09T22:00:47.000Z","updated_at":"2025-03-07T15:05:00.000Z","dependencies_parsed_at":"2023-12-19T19:18:35.093Z","dependency_job_id":"128966e2-8bbd-4865-82e1-92183b89859e","html_url":"https://github.com/mroth/jitter","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":0.03703703703703709,"last_synced_commit":"e4dde0e047d2554d1b678e19f975b4415c34aabd"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroth%2Fjitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroth%2Fjitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroth%2Fjitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroth%2Fjitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mroth","download_url":"https://codeload.github.com/mroth/jitter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251961839,"owners_count":21671962,"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":["go","golang","random","ticker","timer"],"created_at":"2024-11-12T13:26:25.009Z","updated_at":"2025-05-01T23:30:18.756Z","avatar_url":"https://github.com/mroth.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jitter\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/mroth/jitter)](https://pkg.go.dev/github.com/mroth/jitter)\n[![CodeFactor](https://www.codefactor.io/repository/github/mroth/jitter/badge)](https://www.codefactor.io/repository/github/mroth/jitter)\n[![Build Status](https://github.com/mroth/jitter/workflows/test/badge.svg)](https://github.com/mroth/jitter/actions)\n[![codecov](https://codecov.io/gh/mroth/jitter/branch/main/graph/badge.svg)](https://codecov.io/gh/mroth/jitter)\n\nA simple Go library providing functionality for generating durations and tickers\nthat deviate from true periodicity within specified bounds.\n\nMost notably, contains a nearly API compatible version of `time.Ticker` with\ndefinable jitter.\n\n## Usage\n\nFor usage details, see the [Go documentation](https://pkg.go.dev/github.com/mroth/jitter).\n\n### Example Ticker\n\n```go\n// ticker with base duration of 1 second and 0.5 scaling factor\nticker := jitter.NewTicker(time.Second, 0.5)\ndefer ticker.Stop()\n\nprev := time.Now()\nfor {\n    t := \u003c-ticker.C // time elapsed random in range (0.5s, 1.5s)\n    fmt.Println(\"Time elapsed since last tick: \", t.Sub(prev))\n    prev = t\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmroth%2Fjitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmroth%2Fjitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmroth%2Fjitter/lists"}