Debug and Profile : Debug Trace : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Debug Trace »

 

Debug and Profile









    

/*
 * C# Programmers Pocket Consultant
 * Author: Gregory S. MacBeth
 * Email: gmacbeth@comporium.net
 * Create Date: June 27, 2003
 * Last Modified Date:
 * Version: 1
 */
using System;
using System.Diagnostics;

namespace Client.Chapter_16___Debugging
{
  public class PoorMansProfiler
  {
    [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());
    }
  }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Debug Trace