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

◆ Interval()

static TimeSpan System.TimeSpan.Interval ( double value,
double scale )
inlinestaticprivate

Definition at line 205 of file TimeSpan.cs.

206 {
207 if (double.IsNaN(value))
208 {
209 throw new ArgumentException(SR.Arg_CannotBeNaN);
210 }
211 double ticks = value * scale;
212 return IntervalFromDoubleTicks(ticks);
213 }
static TimeSpan IntervalFromDoubleTicks(double ticks)
Definition TimeSpan.cs:215

References System.SR.Arg_CannotBeNaN, System.TimeSpan.IntervalFromDoubleTicks(), and System.value.

Referenced by System.TimeSpan.FromDays(), System.TimeSpan.FromHours(), System.TimeSpan.FromMilliseconds(), System.TimeSpan.FromMinutes(), and System.TimeSpan.FromSeconds().