SHARE
TWEET

Untitled

a guest Aug 14th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Diagnostics;
  3. using System.Timers;
  4. using Trickster.Cheats;
  5.  
  6. namespace Tester
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             var message = string.Empty;
  13.  
  14.             var stopWatch = Stopwatch.StartNew();
  15.  
  16.             for (var i = 0; i < (10 ^ 15); i++)
  17.             {
  18.                 if (i % 2 == 0)
  19.                 {
  20.                     message += ".";
  21.                     continue;
  22.                 }
  23.  
  24.                 message = string.Empty;
  25.             }
  26.  
  27.             Console.WriteLine(stopWatch.Elapsed);
  28.  
  29.             stopWatch.Stop();
  30.             //stopWatch.Reset();
  31.  
  32.  
  33.             message = string.Empty;
  34.  
  35.             var stop = Stopwatch.StartNew();
  36.  
  37.             var max = (10 ^ 15);
  38.             for (var i = max; i > 0;  i--)
  39.             {
  40.                 if (i % 2 == 0)
  41.                 {
  42.                     message += ".";
  43.                     continue;
  44.                 }
  45.  
  46.                 message = string.Empty;
  47.             }
  48.  
  49.             stop.Stop();
  50.  
  51.             Console.WriteLine(stop.Elapsed);
  52.  
  53.             Console.ReadKey();
  54.         }
  55.     }
  56. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top