new file created in corelevel2 #9

Closed
premkumar wants to merge 10 commits from CoreLevel2 into master
Showing only changes of commit 827ec4749e - Show all commits
-27
View File
@@ -1,27 +0,0 @@
using System;
using System.Diagnostics;
namespace TestConsoleApp
{
class Test
{
public static void Execute()
{
var stopWatch = Stopwatch.StartNew();
for (int i = 0; i < 99999; i++)
{
var a = 0;a += i;a++;
}
Console.WriteLine("{0}", stopWatch.Elapsed.TotalMilliseconds);
var stopWatch2 = Stopwatch.StartNew();
for (int i = 0; i < 99999; i++)
{
string k = string.Empty;
var a = 0; a += i; a++;
}
Console.WriteLine("{0}", stopWatch2.Elapsed.TotalMilliseconds);
}
}
}