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

◆ CounterToTimeSpan()

static TimeSpan Microsoft.Xna.Framework.GameClock.CounterToTimeSpan ( long delta)
inlinestaticprivate

Definition at line 125 of file GameClock.cs.

126 {
127 long num = 10000000L;
128 long value = checked(delta * num) / Frequency;
129 return TimeSpan.FromTicks(value);
130 }
static TimeSpan FromTicks(long value)
Definition TimeSpan.cs:277

References Microsoft.Xna.Framework.GameClock.Frequency, System.TimeSpan.FromTicks(), System.L, and System.value.

Referenced by Microsoft.Xna.Framework.GameClock.UpdateElapsedTime().