{"id":15969082,"url":"https://github.com/barrust/timing-c","last_synced_at":"2025-07-18T04:35:35.877Z","repository":{"id":36036618,"uuid":"40333444","full_name":"barrust/timing-c","owner":"barrust","description":"Basic timing functionality for C programs","archived":false,"fork":false,"pushed_at":"2018-10-24T00:39:20.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T13:01:42.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/barrust.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-08-07T00:47:06.000Z","updated_at":"2024-01-14T19:12:52.000Z","dependencies_parsed_at":"2022-08-27T03:16:01.097Z","dependency_job_id":null,"html_url":"https://github.com/barrust/timing-c","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/barrust/timing-c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrust%2Ftiming-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrust%2Ftiming-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrust%2Ftiming-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrust%2Ftiming-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barrust","download_url":"https://codeload.github.com/barrust/timing-c/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrust%2Ftiming-c/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265701091,"owners_count":23813749,"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":"2024-10-07T19:21:37.716Z","updated_at":"2025-07-18T04:35:35.855Z","avatar_url":"https://github.com/barrust.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# timing-c\n\n### Purpose:\nThis header utility is to be able to quickly provide timing functionality to standard c code. It is designed to be beneficial to me as I am tired of re-writting the same type of functionality. I hope it is beneficial to others.\n\n### License:\nCopyright 2015 Licensed under the MIT License\n\n### Usage:\n```c\n#include \u003cstdio.h\u003e\n#include \u003cstdlib.h\u003e\n#include \"timing.h\"\nTiming t;\n\ntiming_start(\u0026t);\n// code to time here\ntiming_end(\u0026t);\nprintf(\"time elapsed: %f\\n\", t.timing_double);\n\n// get to elapsed time elements easily\nprintf(\"hours:        %d\\n\", timing_get_hours(t));\nprintf(\"minutes:      %d\\n\", timing_get_minutes(t));\nprintf(\"seconds:      %d\\n\", timing_get_seconds(t));\nprintf(\"milliseconds: %d\\n\", timing_get_milliseconds(t));\nprintf(\"microseconds: %d\\n\", timing_get_microseconds(t));\n\n// get to a pretty print version\nchar* output = format_time_diff(\u0026t);\nprintf(\"pretty output: %s\\n\", output);\nfree(output);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrust%2Ftiming-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarrust%2Ftiming-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrust%2Ftiming-c/lists"}