{"id":13515031,"url":"https://github.com/kpango/fastime","last_synced_at":"2025-08-21T12:31:16.652Z","repository":{"id":34638638,"uuid":"149252808","full_name":"kpango/fastime","owner":"kpango","description":"Blazing fast time function library for Go with zero memory allocation. fastime returns the approximate time.","archived":false,"fork":false,"pushed_at":"2023-03-22T12:11:20.000Z","size":459,"stargazers_count":53,"open_issues_count":0,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-10T19:15:31.410Z","etag":null,"topics":["fast","golang","lock-free","time","zero-allocation"],"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/kpango.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-18T08:17:42.000Z","updated_at":"2024-11-22T07:40:46.000Z","dependencies_parsed_at":"2024-05-04T04:43:40.652Z","dependency_job_id":null,"html_url":"https://github.com/kpango/fastime","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpango%2Ffastime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpango%2Ffastime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpango%2Ffastime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpango%2Ffastime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kpango","download_url":"https://codeload.github.com/kpango/fastime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230511483,"owners_count":18237658,"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":["fast","golang","lock-free","time","zero-allocation"],"created_at":"2024-08-01T05:01:05.529Z","updated_at":"2024-12-19T23:15:37.045Z","avatar_url":"https://github.com/kpango.png","language":"Go","readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"./assets/logo.png\" width=\"50%\"\u003e\n\u003c/div\u003e\n\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![release](https://img.shields.io/github/release/kpango/fastime.svg)](https://github.com/kpango/fastime/releases/latest)\n[![CircleCI](https://circleci.com/gh/kpango/fastime.svg?style=shield)](https://circleci.com/gh/kpango/fastime)\n[![codecov](https://codecov.io/gh/kpango/fastime/branch/master/graph/badge.svg)](https://codecov.io/gh/kpango/fastime)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b9fa9b846ec343d3860b8f69e802c09b)](https://www.codacy.com/app/i.can.feel.gravity/fastime?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=kpango/fastime\u0026amp;utm_campaign=Badge_Grade)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kpango/fastime)](https://goreportcard.com/report/github.com/kpango/fastime)\n[![GoDoc](http://godoc.org/github.com/kpango/fastime?status.svg)](http://godoc.org/github.com/kpango/fastime)\n[![Join the chat at https://gitter.im/kpango/fastime](https://badges.gitter.im/kpango/fastime.svg)](https://gitter.im/kpango/fastime?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\nfastime is a super fast time function library for Go with zero memory allocation. fastime returns the approximate time.\n\n## Requirement\nGo 1.16\n\n## Installation\n```shell\ngo get github.com/kpango/fastime\n```\n\n## Example\n```go\n    now := fastime.Now().StartTimerD(context.Background(), time.Millisecond*5)\n    defer fastime.Stop()\n\n    // Create Instance\n    ft := fastime.New().StartTimerD(context.Background(), time.Millisecond*5)\n    defer ft.Stop()\n    ft.Now()\n```\n\n## Benchmark\n\n```\ngo test -count=10 -run=NONE -bench . -benchmem\ngoos: linux\ngoarch: amd64\npkg: github.com/kpango/fastime\nBenchmarkFastime-8   \t2000000000\t         0.45 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkFastime-8   \t2000000000\t         0.45 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkFastime-8   \t2000000000\t         0.45 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkFastime-8   \t2000000000\t         0.45 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkFastime-8   \t2000000000\t         0.45 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkFastime-8   \t2000000000\t         0.45 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkFastime-8   \t2000000000\t         0.45 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkFastime-8   \t2000000000\t         0.45 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkFastime-8   \t2000000000\t         0.45 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkFastime-8   \t2000000000\t         0.46 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTime-8      \t 1000000\t      1683 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTime-8      \t 1000000\t      1720 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTime-8      \t 1000000\t      1688 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTime-8      \t 1000000\t      1716 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTime-8      \t 1000000\t      1691 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTime-8      \t 1000000\t      1693 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTime-8      \t 1000000\t      1703 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTime-8      \t 1000000\t      1668 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTime-8      \t 1000000\t      1685 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTime-8      \t 1000000\t      1716 ns/op\t       0 B/op\t       0 allocs/op\nPASS\nok  \tgithub.com/kpango/fastime\t26.873s\n```\n## Contribution\n1. Fork it ( https://github.com/kpango/fastime/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create new Pull Request\n\n## Author\n[kpango](https://github.com/kpango)\n\n## LICENSE\nfastime released under MIT license, refer [LICENSE](https://github.com/kpango/fastime/blob/master/LICENSE) file.\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpango%2Ffastime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkpango%2Ffastime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpango%2Ffastime/lists"}