Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Diagnostics;
  3. namespace TestConsoleApp
  4. {
  5. class Test
  6. {
  7. public static void Execute()
  8. {
  9. var stopWatch = Stopwatch.StartNew();
  10. for (int i = 0; i < 99999; i++)
  11. {
  12. var a = 0;a += i;a++;
  13. }
  14. Console.WriteLine("{0}", stopWatch.Elapsed.TotalMilliseconds);
  15. var stopWatch2 = Stopwatch.StartNew();
  16. for (int i = 0; i < 99999; i++)
  17. {
  18. string k = string.Empty; // Core lev2
  19. //Commetes For Branch Level 2
  20. var a = 0; a += i; a++;
  21. }
  22. Console.WriteLine("{0}", stopWatch2.Elapsed.TotalMilliseconds);
  23. }
  24. }
  25. }