forked from cschladetsch/CsharpFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIPeriodic.cs
More file actions
27 lines (22 loc) · 791 Bytes
/
Copy pathIPeriodic.cs
File metadata and controls
27 lines (22 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// (C) 2012 Christian Schladetsch. See https://github.com/cschladetsch/Flow.
namespace Flow
{
using System;
/// <inheritdoc />
/// <summary>
/// Periodic instances regularly fire their Elapsed event.
/// <para>
/// NOTE the timer will fire at most once per Kernel Step
/// </para>
/// </summary>
public interface IPeriodic : IGenerator
{
// Periodically fires when the timer has elapsed. Fired at most once per Kernel Step
event TransientHandler Elapsed;
// The time that this periodic timer was started.
DateTime TimeStarted { get; }
// Successive Elapsed events will have not less than this TimeSpan between being fired.
TimeSpan Interval { get; }
TimeSpan TimeRemaining { get; }
}
}