private void SerializeApplication() { Console.WriteLine(new string('-', 80)); Console.WriteLine("Application exiting... Saving preferences : \n"); Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); /* timed instructions here */ IPreferenceManager tool = WindowManager.PreferenceManager; tool.SerializePreferenceManager(); /* end timed instructions */ stopwatch.Stop(); Console.WriteLine("\tPreference file creation/writing time : " + (stopwatch.ElapsedTicks * (TimeSpan.TicksPerMillisecond / 10 ^ 6)) + " ns"); Console.WriteLine(new string('-', 80)); }