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

◆ Timer() [2/2]

System.Timers.Timer.Timer ( double interval)
inline

Definition at line 197 of file Timer.cs.

198 : this()
199 {
200 if (interval <= 0.0)
201 {
202 throw new ArgumentException(System.SR.Format(System.SR.InvalidParameter, "interval", interval));
203 }
204 double num = Math.Ceiling(interval);
205 if (num > 2147483647.0 || num <= 0.0)
206 {
207 throw new ArgumentException(System.SR.Format(System.SR.InvalidParameter, "interval", interval));
208 }
209 _interval = (int)num;
210 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string InvalidParameter
Definition SR.cs:62
Definition SR.cs:7
double _interval
Definition Timer.cs:11

References System.Timers.Timer._interval, System.Math.Ceiling(), System.SR.Format(), and System.SR.InvalidParameter.