Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IntervalFromDoubleTicks()

static TimeSpan System.TimeSpan.IntervalFromDoubleTicks ( double ticks)
inlinestaticprivate

Definition at line 215 of file TimeSpan.cs.

216 {
217 if (ticks > 9.223372036854776E+18 || ticks < -9.223372036854776E+18 || double.IsNaN(ticks))
218 {
219 throw new OverflowException(SR.Overflow_TimeSpanTooLong);
220 }
221 if (ticks == 9.223372036854776E+18)
222 {
223 return MaxValue;
224 }
225 return new TimeSpan((long)ticks);
226 }
static readonly TimeSpan MaxValue
Definition TimeSpan.cs:23
TimeSpan(long ticks)
Definition TimeSpan.cs:78

References System.TimeSpan.TimeSpan(), System.E, System.TimeSpan.MaxValue, and System.SR.Overflow_TimeSpanTooLong.

Referenced by System.TimeSpan.Interval(), System.TimeSpan.operator*(), and System.TimeSpan.operator/().