Manual Profiler : TimeSpan : Date Time C# Examples


C# Examples » Date Time » TimeSpan »

 

Manual Profiler









    
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());
    }
}
    
   
  
   



Output

Call Time(MS): 0


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Date Time
» TimeSpan