Table of Contents

Struct Microseconds

Namespace
SampSharp.OpenMp.Core.Std.Chrono
Assembly
SampSharp.OpenMp.Core.dll

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

value long

The duration value in microseconds.

Methods

AsTimeSpan()

Converts this duration to a TimeSpan.

public TimeSpan AsTimeSpan()

Returns

TimeSpan

The duration as a TimeSpan.

ToString()

public override string ToString()

Returns

string

Operators

implicit operator TimeSpan(Microseconds)

Converts a Microseconds to a TimeSpan.

public static implicit operator TimeSpan(Microseconds microseconds)

Parameters

microseconds Microseconds

The value to convert.

Returns

TimeSpan

implicit operator Microseconds(TimeSpan)

Converts a TimeSpan to a Microseconds.

public static implicit operator Microseconds(TimeSpan timeSpan)

Parameters

timeSpan TimeSpan

The time span to convert.

Returns

Microseconds