{"id":18682738,"url":"https://github.com/chneau/tt","last_synced_at":"2025-11-07T17:30:33.673Z","repository":{"id":57480884,"uuid":"138300170","full_name":"chneau/tt","owner":"chneau","description":"a simple time tracker for go","archived":false,"fork":false,"pushed_at":"2018-10-02T15:22:11.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T20:19:17.707Z","etag":null,"topics":["chronometer","development","golang","timer"],"latest_commit_sha":null,"homepage":null,"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/chneau.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":"2018-06-22T12:27:20.000Z","updated_at":"2018-10-02T15:22:13.000Z","dependencies_parsed_at":"2022-09-26T17:41:24.165Z","dependency_job_id":null,"html_url":"https://github.com/chneau/tt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Ftt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Ftt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Ftt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chneau%2Ftt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chneau","download_url":"https://codeload.github.com/chneau/tt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239533448,"owners_count":19654682,"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":["chronometer","development","golang","timer"],"created_at":"2024-11-07T10:12:42.374Z","updated_at":"2025-11-07T17:30:33.621Z","avatar_url":"https://github.com/chneau.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tt\nA simple time tracker for go in arround 40 lines of code.  \nAllows you to quickly check how much time a function takes to run.\n\n## Doc\nhttps://godoc.org/github.com/chneau/tt\n\n## Install\n```bash\ngo get github.com/chneau/tt\n```\n\n## Usage\n\nSimply add `defer tt.T()()` to a function to know how much times the function takes to finish (from the line you have written `defer tt.T()()`).\n\n## Example\n###### Code\n```go\n// GetDataStatic Return static data\nfunc GetDataStatic() []Load {\n\tdefer tt.Track(time.Now(), \"GetDataStaticLoads\") // This\n\tdefer tt.T()()                                   // This one is a shorthand\n\tf, _ := fs.New()\n\tfile, _ := f.Open(\"/loads.gob\")\n\tdec := gob.NewDecoder(file)\n\tv := []Load{}\n\tdec.Decode(\u0026v)\n\treturn v\n}\n```\n###### Output\n```\n[TRACK] 2018/08/03 12:12:03 \u003c[main.GetDataStatic]\u003e 75.563159ms\n[TRACK] 2018/08/03 12:12:03 \u003c[GetDataStaticLoads]\u003e 75.563159ms\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchneau%2Ftt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchneau%2Ftt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchneau%2Ftt/lists"}