Exemple #1
0
        void swTimer_Tick(object sender, HighPrecisionTimer.TickEventArgs e)
        {
            sw.Stop();
            Console.WriteLine("time: " + sw.ElapsedMilliseconds);

            e.NextTickIn = 1 + k;
            k++;
            sw.Restart();
        }
Exemple #2
0
 private void _tickerHighPrecisionTimer_Tick(object sender, HighPrecisionTimer.TickEventArgs e)
 {
     WorldTick(null);
 }