// ReSharper restore UnusedParameter.Local // ReSharper disable UnusedParameter.Local private static void Main(string[] args) { var stopwatch = new Stopwatch(); var stopwatchExternal = new Stopwatch(); var testThread = new TestThread(stopwatch, "TestThread"); testThread.RunThread(); stopwatchExternal.Start(); while (testThread.Status != RunningStatus.Halted) { Thread.Sleep(5); } stopwatchExternal.Stop(); Console.WriteLine( string.Format( "Completed in {0} ms, lifecycle was of {1} ms.", stopwatch.ElapsedMilliseconds, stopwatchExternal.ElapsedMilliseconds)); //Just to avoid the app closing... Console.ReadKey(); }