Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var closuresTask = new ClosuresTask();

            var stopWatch = new Stopwatch();

            stopWatch.Start();

            closuresTask.Start();

            stopWatch.Stop();
            var elapsed     = stopWatch.Elapsed;
            var elapsedTime = $"{elapsed.Hours:00}:{elapsed.Minutes:00}:{elapsed.Seconds:00}.{elapsed.Milliseconds / 10:00}";

            Console.WriteLine($"Required time: {elapsedTime}");
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var closuresTask = new ClosuresTask();

            closuresTask.Start();
        }