Class TimeSpanUtils
- Namespace
- NanoByte.Common
- Assembly
- NanoByte.Common.dll
Helper methods for TimeSpan.
public static class TimeSpanUtils
- Inheritance
-
objectTimeSpanUtils
Methods
Divide(TimeSpan, double)
Divides the timespan by a factor.
public static TimeSpan Divide(this TimeSpan timeSpan, double factor)
Parameters
Returns
Divide(TimeSpan, TimeSpan)
Divides two timespans, returning the quotient.
public static double Divide(this TimeSpan timeSpan, TimeSpan other)
Parameters
Returns
FromSecondsAccurate(double)
Like FromSeconds(double), but with higher-than-millisecond accuracy.
public static TimeSpan FromSecondsAccurate(double seconds)
Parameters
secondsdouble
Returns
Multiply(TimeSpan, double)
Multiplies the timespan by a factor.
public static TimeSpan Multiply(this TimeSpan timeSpan, double factor)