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