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

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

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

            asyncTimer.Execute();
        }