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

◆ operator*() [3/4]

static TimeSpan System.TimeSpan.operator* ( TimeSpan timeSpan,
double factor )
inlinestatic

Definition at line 520 of file TimeSpan.cs.

521 {
522 if (double.IsNaN(factor))
523 {
524 throw new ArgumentException(SR.Arg_CannotBeNaN, "factor");
525 }
526 double ticks = Math.Round((double)timeSpan.Ticks * factor);
527 return IntervalFromDoubleTicks(ticks);
528 }
static TimeSpan IntervalFromDoubleTicks(double ticks)
Definition TimeSpan.cs:215

References System.SR.Arg_CannotBeNaN, System.TimeSpan.IntervalFromDoubleTicks(), System.Math.Round(), and System.TimeSpan.Ticks.