예제 #1
0
        static void Main(string[] args)
        {
            Timer         timer    = new Timer();
            TimerListener listener = new TimerListener();

            listener.Subscribe(timer);
            timer.DoStuffEveryTTicks(190000);
        }
예제 #2
0
        static void Main(string[] args)
        {
            Timer timer = new Timer();
            TimerListener listener = new TimerListener();

            listener.Subscribe(timer);
            timer.DoStuffEveryTTicks(190000);
        }
예제 #3
0
        static void Main(string[] args)
        {
            Timer.TimerDel timerHandler = DoImportantThings;
            Timer.sw.Start();

            while (true)
            {
                Timer.DoStuffEveryTTicks(1200000, timerHandler);
            }
        }