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
Returns
FromMicroSeconds(long)
public static TimeSpan FromMicroSeconds(long microSeconds)
Parameters
microSeconds
long
Returns
FromTimeStamp(long)
public static TimeSpan FromTimeStamp(long timestamp)
Parameters
timestamp
long
Returns
FromTimeStamp(long, long)
public static TimeSpan FromTimeStamp(long timestamp, long frequency)
Parameters
Returns
Max(TimeSpan, TimeSpan)
public static TimeSpan Max(TimeSpan left, TimeSpan right)
Parameters
Returns
Min(TimeSpan, TimeSpan)
public static TimeSpan Min(TimeSpan left, TimeSpan right)
Parameters
Returns
TotalMicroSeconds(TimeSpan)
public static long TotalMicroSeconds(this TimeSpan timeSpan)
Parameters
timeSpan
TimeSpan