{"id":26245965,"url":"https://github.com/carvetighter/timer","last_synced_at":"2025-10-30T03:57:39.824Z","repository":{"id":62584821,"uuid":"122705061","full_name":"carvetighter/Timer","owner":"carvetighter","description":"A simple wrapper to time how long methods occur.  This is designed for methods that take seconds not micro-seconds.","archived":false,"fork":false,"pushed_at":"2019-08-21T04:42:14.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-17T14:42:40.514Z","etag":null,"topics":["python","python-3","python3","timer","timers"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carvetighter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-24T05:06:47.000Z","updated_at":"2019-08-21T04:42:15.000Z","dependencies_parsed_at":"2022-11-03T21:49:08.557Z","dependency_job_id":null,"html_url":"https://github.com/carvetighter/Timer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carvetighter/Timer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carvetighter%2FTimer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carvetighter%2FTimer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carvetighter%2FTimer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carvetighter%2FTimer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carvetighter","download_url":"https://codeload.github.com/carvetighter/Timer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carvetighter%2FTimer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259297802,"owners_count":22836434,"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":["python","python-3","python3","timer","timers"],"created_at":"2025-03-13T13:16:55.610Z","updated_at":"2025-10-30T03:57:34.778Z","avatar_url":"https://github.com/carvetighter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TimerWrapper\n\nThis is a very small package and is designed to time different parts of code that take more than a second.  This package is not intended to replace ``timeit`` or any other timer.  This is intended for developers to make debugging a bit easier.\n\n### Installation\n\n```pip install TimerWrapper```\n\n### Usage\n\n**Example 01:**\n```python\nfrom TimerWrapper import Timer\n\ntimer_00 = Timer()\n\u003cblock of code\u003e\nfloat_time = timer_00.stop()\nprint(float_time)\n```\n\n**Example 01 Output (5 seconds):**\n```\n\u003ccode output\u003e\n5.0\n```\n\n**Example 02:** \n```python\n\nfrom TimerWrapper import Timer\n\ntimer_01 = Timer('added text')\n\u003cblock of code\u003e\ntimer_01.stop_timer(m_bool_print = True)\n```\n\n**Example 02 Output (5 seconds):**\n```\n\u003ccode output\u003e\nprocess time is: 00:00:05 added text\n```\n\n**Clearing the timer:**\n \nYou can use the same instance to time additonal code blocks.  You must clear the timer first.\n```python\nfrom TimerWrapper import Timer\n\ntimer_01 = Timer()\n\u003cblock of code\u003e\nfloat_time_00 = timer_01.stop_timer()\n\ntimer_01.clear_timer()\ntimer_01.start_timer()\n\u003cblock of code\u003e\nfloat_time_01 = timer_01.stop_timer()\n```\n\n```float_time_00``` and ```float_time_01``` are different.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarvetighter%2Ftimer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarvetighter%2Ftimer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarvetighter%2Ftimer/lists"}