This commit is contained in:
2022-03-22 06:53:12 +00:00
parent 018946528f
commit df84000232
-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++)
{
var a = 0; a += i; a++;
}
Console.WriteLine("{0}", stopWatch2.Elapsed.TotalMilliseconds);
}
}
}