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

◆ Duration()

TimeSpan System.TimeSpan.Duration ( )
inline

Definition at line 167 of file TimeSpan.cs.

168 {
169 if (Ticks == MinValue.Ticks)
170 {
171 throw new OverflowException(SR.Overflow_Duration);
172 }
173 return new TimeSpan((_ticks >= 0) ? _ticks : (-_ticks));
174 }
static readonly TimeSpan MinValue
Definition TimeSpan.cs:25
TimeSpan(long ticks)
Definition TimeSpan.cs:78
readonly long _ticks
Definition TimeSpan.cs:27

References System.TimeSpan.TimeSpan(), System.TimeSpan._ticks, System.TimeSpan.MinValue, System.SR.Overflow_Duration, and System.TimeSpan.Ticks.