2010/01/13

Stopwatch

Stopwatch sw = new Stopwatch();
sw.Start();
for (int i = 0; i < 500000; i++)
{
    List<string> list = new List<string>();
}
sw.Stop();
Console.WriteLine(sw.Elapsed);
Console.Read();