public static void Main()
        {
            Action<object, EventArgs> action = GetTime;

            var asyncTimer = new AsynchronousTimer(action, 10, 1000);
            asyncTimer.OnTick += GetTime;
            asyncTimer.Run();
        }
        static void Main(string[] args)
        {
            AsynchronousTimer asyncTimer = new AsynchronousTimer(Print, 5, 1000);

            asyncTimer.Execute();
        }
Exemple #3
0
        static void Main(string[] args)
        {
            AsynchronousTimer asyncTimer = new AsynchronousTimer(Print, 5, 1000);

            asyncTimer.Execute();
        }