Table of Contents

Struct Seconds

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

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

value long

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(Seconds)

Converts a Seconds to a TimeSpan.

public static implicit operator TimeSpan(Seconds seconds)

Parameters

seconds Seconds

The value to convert.

Returns

TimeSpan

implicit operator Seconds(TimeSpan)

Converts a TimeSpan to a Seconds.

public static implicit operator Seconds(TimeSpan timeSpan)

Parameters

timeSpan TimeSpan

The time span to convert.

Returns

Seconds