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

◆ Subtract()

TimeSpan System.TimeSpan.Subtract ( TimeSpan ts)
inline

Definition at line 252 of file TimeSpan.cs.

253 {
254 long num = _ticks - ts._ticks;
255 if (_ticks >> 63 != ts._ticks >> 63 && _ticks >> 63 != num >> 63)
256 {
257 throw new OverflowException(SR.Overflow_TimeSpanTooLong);
258 }
259 return new TimeSpan(num);
260 }
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-().