Table of Contents

Class TimeSpanExtensions

Namespace
Stride.Core.Extensions
Assembly
Stride.Core.dll
public static class TimeSpanExtensions
Inheritance
TimeSpanExtensions

Methods

Clamp(TimeSpan, TimeSpan, TimeSpan)

public static TimeSpan Clamp(TimeSpan value, TimeSpan min, TimeSpan max)

Parameters

value TimeSpan
min TimeSpan
max TimeSpan

Returns

TimeSpan

FromMicroSeconds(long)

public static TimeSpan FromMicroSeconds(long microSeconds)

Parameters

microSeconds long

Returns

TimeSpan

FromTimeStamp(long)

public static TimeSpan FromTimeStamp(long timestamp)

Parameters

timestamp long

Returns

TimeSpan

FromTimeStamp(long, long)

public static TimeSpan FromTimeStamp(long timestamp, long frequency)

Parameters

timestamp long
frequency long

Returns

TimeSpan

Max(TimeSpan, TimeSpan)

public static TimeSpan Max(TimeSpan left, TimeSpan right)

Parameters

left TimeSpan
right TimeSpan

Returns

TimeSpan

Min(TimeSpan, TimeSpan)

public static TimeSpan Min(TimeSpan left, TimeSpan right)

Parameters

left TimeSpan
right TimeSpan

Returns

TimeSpan

TotalMicroSeconds(TimeSpan)

public static long TotalMicroSeconds(this TimeSpan timeSpan)

Parameters

timeSpan TimeSpan

Returns

long