Struct Seconds
Represents a duration in seconds which is represented in memory like an std::chrono::Seconds from the C++
standard library.
public readonly struct Seconds
- Inherited Members
Constructors
Seconds(long)
Initializes a new instance of the Seconds struct.
public Seconds(long value)
Parameters
valuelong
Methods
AsTimeSpan()
Converts this duration to a TimeSpan.
public TimeSpan AsTimeSpan()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator TimeSpan(Seconds)
public static implicit operator TimeSpan(Seconds seconds)
Parameters
secondsSecondsThe value to convert.
Returns
implicit operator Seconds(TimeSpan)
public static implicit operator Seconds(TimeSpan timeSpan)
Parameters
timeSpanTimeSpanThe time span to convert.