{"id":24801245,"url":"https://github.com/borisgerretzen/pausabletimer","last_synced_at":"2026-02-08T13:38:47.418Z","repository":{"id":274874777,"uuid":"924019875","full_name":"BorisGerretzen/PausableTimer","owner":"BorisGerretzen","description":"A lightweight C# library that provides a simple timer with the ability to pause and resume.","archived":false,"fork":false,"pushed_at":"2025-01-30T11:20:43.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T08:47:44.544Z","etag":null,"topics":["c-sharp","csharp","pause","timer"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BorisGerretzen.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":"2025-01-29T09:15:40.000Z","updated_at":"2025-01-30T11:19:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"af22e998-4eec-4e66-b8d9-7a36b759c740","html_url":"https://github.com/BorisGerretzen/PausableTimer","commit_stats":null,"previous_names":["borisgerretzen/pausabletimer"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/BorisGerretzen/PausableTimer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BorisGerretzen%2FPausableTimer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BorisGerretzen%2FPausableTimer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BorisGerretzen%2FPausableTimer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BorisGerretzen%2FPausableTimer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BorisGerretzen","download_url":"https://codeload.github.com/BorisGerretzen/PausableTimer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BorisGerretzen%2FPausableTimer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266067281,"owners_count":23871324,"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":["c-sharp","csharp","pause","timer"],"created_at":"2025-01-30T04:19:51.106Z","updated_at":"2026-02-08T13:38:47.343Z","avatar_url":"https://github.com/BorisGerretzen.png","language":"C#","readme":"﻿# PausableTimer\n[![NuGet](https://img.shields.io/nuget/v/PausableTimers.svg)](https://www.nuget.org/packages/PausableTimers/)\n\nA lightweight C# library that provides a simple timer like `System.Timers.Timer` but with the ability to pause and resume.\n\n## Usage\n\n```csharp\nusing PausableTimers;\n\n// Start a timer with an interval of 5 seconds\nvar timer = new PausableTimer();\ntimer.Interval = 5000;\ntimer.Elapsed += (sender, e) =\u003e Console.WriteLine(\"Elapsed\");\ntimer.Start();\nConsole.WriteLine(\"Timer started\");\n\n// Wait for 4.5 seconds and pause timer\nawait Task.Delay(4500);\ntimer.Pause();\nConsole.WriteLine(\"Timer paused\");\n\n// Wait for 5 seconds and resume timer\nawait Task.Delay(5000);\ntimer.Resume();\nConsole.WriteLine(\"Timer resumed\");\n\n// Elapsed shows up ~0.5 seconds after resuming, afterwards timer will elapse every 5 seconds\nawait Task.Delay(6000);\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborisgerretzen%2Fpausabletimer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborisgerretzen%2Fpausabletimer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborisgerretzen%2Fpausabletimer/lists"}