Encapsulates a starting time and duration.
Namespace: DimensionEngineering.Kangaroo
Assembly: DimensionEngineering.Kangaroo (in DimensionEngineering.Kangaroo.dll) Version: 1.0.5.0 (1.0.5.0)
Syntax
The KangarooTimeout type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| KangarooTimeout |
Constructs a KangarooTimeout object. The starting time is captured.
|
Methods
| Name | Description | |
|---|---|---|
| Expire |
Causes the timeout to expire immediately.
| |
| Reset |
Captures the current time and uses it as the new starting time for the timeout.
|
Operators
| Name | Description | |
|---|---|---|
| GreaterThan |
Compares the amount of time left in the timeouts.
| |
| LessThan |
Compares the amount of time left in the timeouts.
|
Properties
| Name | Description | |
|---|---|---|
| CanExpire |
Gets whether the timeout can expire.
If the KangarooTimeout was created with a timeout of Infinite, it cannot expire.
| |
| Expired |
Gets whether the timeout expired.
| |
| TimeLeft |
Gets the time left before expiration, or Infinite if the timeout cannot expire.
|
See Also