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
first
Duration equals thesecond
Duration
- operator >(in Duration, in Duration)
Returns true if the
first
Duration is greater than thesecond
Duration
- operator >=(in Duration, in Duration)
Returns true if the
first
Duration is greater than or equal to thesecond
Duration
- operator !=(in Duration, in Duration)
Returns true if the
first
Duration does not equal thesecond
Duration
- operator <(in Duration, in Duration)
Returns true if the
first
Duration is less than thesecond
Duration
- operator <=(in Duration, in Duration)
Returns true if the
first
Duration is less than or equal to thesecond
Duration