Use Stopwatch : Stopwatch : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Stopwatch »

 

Use Stopwatch








    


using System;
using System.Reflection;
using System.Diagnostics;

class OnlyLoad {
    static void Main() {
        Stopwatch duration = new Stopwatch();
        duration.Reset();
        duration.Start();
        Assembly a = Assembly.Load("library");
        duration.Stop();
        Console.WriteLine(duration.ElapsedTicks.ToString());
        duration.Reset();
        duration.Start();
        a = Assembly.ReflectionOnlyLoad("library");
        duration.Stop();
        Console.WriteLine(duration.ElapsedTicks.ToString());
    }
}
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Stopwatch