using System; using System.Diagnostics; class MainClass { [STAThread] static void Main(string[] args) { DateTime Start = DateTime.Now; DateTime End = DateTime.Now; TimeSpan CallTime = End - Start; Console.WriteLine("Call Time(MS): " + CallTime.Milliseconds.ToString()); } }
Call Time(MS): 0