static void Main(string[] args) { Problem12 p = new Problem12(); DateTime d = DateTime.Now; Console.WriteLine("Time started ==" + d); p.answerProblem(); TimeSpan t = d - DateTime.Now; Console.WriteLine("Time taken =="+t); Console.ReadLine(); }
static void Main(string[] args) { Problem12 p = new Problem12(); DateTime d = DateTime.Now; Console.WriteLine("Time started ==" + d); p.answerProblem(); TimeSpan t = d - DateTime.Now; Console.WriteLine("Time taken ==" + t); Console.ReadLine(); }