TimeSpanExtensions Class
Namespace: Stride.Audio
Assembly: Stride.Audio.dll
System.Object →
TimeSpanExtensions
Derived from TimeSpanExtensions:
public static class TimeSpanExtensions
|
Improve this Doc
View Source
Methods
Clamp(TimeSpan, TimeSpan, TimeSpan)
public static TimeSpan Clamp(TimeSpan value, TimeSpan min, TimeSpan max)
Parameters
Type |
Name |
Description |
System.TimeSpan |
value |
|
System.TimeSpan |
min |
|
System.TimeSpan |
max |
|
Returns
Type |
Description |
System.TimeSpan |
|
FromMicroSeconds(Int64)
public static TimeSpan FromMicroSeconds(long microSeconds)
Parameters
Type |
Name |
Description |
System.Int64 |
microSeconds |
|
Returns
Type |
Description |
System.TimeSpan |
|
Max(TimeSpan, TimeSpan)
public static TimeSpan Max(TimeSpan left, TimeSpan right)
Parameters
Type |
Name |
Description |
System.TimeSpan |
left |
|
System.TimeSpan |
right |
|
Returns
Type |
Description |
System.TimeSpan |
|
Min(TimeSpan, TimeSpan)
public static TimeSpan Min(TimeSpan left, TimeSpan right)
Parameters
Type |
Name |
Description |
System.TimeSpan |
left |
|
System.TimeSpan |
right |
|
Returns
Type |
Description |
System.TimeSpan |
|
TotalMicroSeconds(TimeSpan)
public static long TotalMicroSeconds(this TimeSpan timeSpan)
Parameters
Type |
Name |
Description |
System.TimeSpan |
timeSpan |
|
Returns
Type |
Description |
System.Int64 |
|