From fc5f4cc56e0219264e1a819cf1517ddaec109f52 Mon Sep 17 00:00:00 2001 From: RobIII Date: Wed, 22 Jun 2022 15:44:40 +0200 Subject: [PATCH] Forgot mention of PeriodicTimer. --- ITimer.Documentation/Content/Welcome.aml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ITimer.Documentation/Content/Welcome.aml b/ITimer.Documentation/Content/Welcome.aml index 805045d..5d15c43 100644 --- a/ITimer.Documentation/Content/Welcome.aml +++ b/ITimer.Documentation/Content/Welcome.aml @@ -96,7 +96,7 @@ public void ConfigureServices(IServiceCollection services)
- ThreadingTimer and SystemTimer + ThreadingTimer, SystemTimer and PeriodicTimer As mentioned before, these timers encapsulate (or "wrap") the T:System.Threading.Timer and T:System.Timers.Timer timers and provide a unified interface because they both implement the T:ITimer.ISignaler interface. The difference between the first two is perhaps best explained by diff --git a/README.md b/README.md index 24fd005..27d7c71 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ For usage in unittests, see the [`TestTimer`](#testtimer) below. The [`ISignaler`](ITimer/ISignaler.cs) interface defines the `Start()` and `Stop()` methods to start and stop the timer raise the `Elapsed` event. The `Interval` property gets the timer's interval and the `AutoReset` property returns whether or not the timer should fire the event once and then stop, or keep going in a fire event / wait cycle. -## ThreadingTimer and SystemTimer +## ThreadingTimer, SystemTimer and PeriodicTimer As mentioned before, these timers encapsulate (or "wrap") the [`System.Threading.Timer`](https://docs.microsoft.com/en-us/dotnet/api/system.threading.timer) and [`System.Timers.Timer`](https://docs.microsoft.com/en-us/dotnet/api/system.timers.timer) timers and provide a unified interface because they both implement the [`ISignaler`](ITimer/ISignaler.cs) interface. The difference between the first two is perhaps best explained by [Jon Skeet](https://jonskeet.uk/csharp/threads/timers.html) (archived version [here](https://archive.is/eXhQS) or [here](https://web.archive.org/web/20190303143427/http://jonskeet.uk/csharp/threads/timers.html)). The [`System.Windows.Forms.Timer`](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.timer) is not provided by this library but should be simple to implement.