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

◆ Add()

TimeSpan System.TimeSpan.Add ( TimeSpan ts)
inline

Definition at line 103 of file TimeSpan.cs.

104 {
105 long num = _ticks + ts._ticks;
106 if (_ticks >> 63 == ts._ticks >> 63 && _ticks >> 63 != num >> 63)
107 {
108 throw new OverflowException(SR.Overflow_TimeSpanTooLong);
109 }
110 return new TimeSpan(num);
111 }
TimeSpan(long ticks)
Definition TimeSpan.cs:78
readonly long _ticks
Definition TimeSpan.cs:27

References System.TimeSpan.TimeSpan(), System.TimeSpan._ticks, and System.SR.Overflow_TimeSpanTooLong.

Referenced by System.TimeSpan.operator+(), and Terraria.GameContent.ChromaHotkeyPainter.ReactiveRGBKey.Refresh().