{"id":20278540,"url":"https://github.com/wmentor/latency","last_synced_at":"2026-07-17T00:33:07.457Z","repository":{"id":57531180,"uuid":"276445811","full_name":"wmentor/latency","owner":"wmentor","description":"Latency time calc","archived":false,"fork":false,"pushed_at":"2020-07-01T18:07:52.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T01:44:35.199Z","etag":null,"topics":["calc-time","go","golang","golang-library","latency","time","work-time"],"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/wmentor.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":"2020-07-01T17:48:04.000Z","updated_at":"2020-07-01T18:07:03.000Z","dependencies_parsed_at":"2022-09-05T09:50:47.675Z","dependency_job_id":null,"html_url":"https://github.com/wmentor/latency","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wmentor/latency","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmentor%2Flatency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmentor%2Flatency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmentor%2Flatency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmentor%2Flatency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wmentor","download_url":"https://codeload.github.com/wmentor/latency/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmentor%2Flatency/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280734656,"owners_count":26381880,"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-24T02:00:06.418Z","response_time":73,"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":["calc-time","go","golang","golang-library","latency","time","work-time"],"created_at":"2024-11-14T13:23:56.738Z","updated_at":"2025-10-24T04:06:57.091Z","avatar_url":"https://github.com/wmentor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple calc latency library\n\n# Summary\n\n* Very simple\n* Written on tiny Go\n* Require Go version \u003e= 1.8\n* No external dependencies\n\n# Install\n\n```\ngo get github.com/wmentor/latency\n```\n\n# Usage\n\n```\npackage main\n\nimport (\n  \"fmt\"\n  \"time\"\n\n  \"github.com/wmentor/latency\"  \n)\n\nfunc main() {\n\n  l := latency.New()\n\n  time.Sleep(time.Millisecond * 10)\n\n  fmt.Printf(\"latency=%.3f\\n\", l.Seconds()) // like 0.01...\n\n  time.Sleep(time.Millisecond * 160)\n\n  fmt.Printf(\"latency=%.3f\\n\", l.Seconds()) // like 0.17...\n\n  l.Duration() // time.Duration\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmentor%2Flatency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwmentor%2Flatency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmentor%2Flatency/lists"}