DateTime starttime = DateTime.Now; DateTime endtime = DateTime.Now; string runtime = (endtime - starttime).ToString(); Console.WriteLine(runtime);
2022-09-21 21:26:11
DateTime starttime = DateTime.Now; DateTime endtime = DateTime.Now; string runtime = (endtime - starttime).ToString(); Console.WriteLine(runtime);