Struct Duration
- Namespace
- Eon
- Assembly
- Eon.dll
Period of time (duration). It differs from TimeSpan in that it can never be negative
public readonly struct Duration : IEquatable<Duration>, IComparable<Duration>
- Implements
- Inherited Members
Constructors
- Duration(TimeSpan)
Duration constructor
Fields
Methods
- GetAwaiter()
Exposes an awaiter from Delay(int) to allow direct await on a Duration
Operators
- operator ==(in Duration, in Duration)
Returns true if the
firstDuration equals thesecondDuration
- operator >(in Duration, in Duration)
Returns true if the
firstDuration is greater than thesecondDuration
- operator >=(in Duration, in Duration)
Returns true if the
firstDuration is greater than or equal to thesecondDuration
- operator !=(in Duration, in Duration)
Returns true if the
firstDuration does not equal thesecondDuration
- operator <(in Duration, in Duration)
Returns true if the
firstDuration is less than thesecondDuration
- operator <=(in Duration, in Duration)
Returns true if the
firstDuration is less than or equal to thesecondDuration