Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics;
- using System.Timers;
- using Trickster.Cheats;
- namespace Tester
- {
- class Program
- {
- static void Main(string[] args)
- {
- var message = string.Empty;
- var stopWatch = Stopwatch.StartNew();
- for (var i = 0; i < (10 ^ 15); i++)
- {
- if (i % 2 == 0)
- {
- message += ".";
- continue;
- }
- message = string.Empty;
- }
- Console.WriteLine(stopWatch.Elapsed);
- stopWatch.Stop();
- //stopWatch.Reset();
- message = string.Empty;
- var stop = Stopwatch.StartNew();
- var max = (10 ^ 15);
- for (var i = max; i > 0; i--)
- {
- if (i % 2 == 0)
- {
- message += ".";
- continue;
- }
- message = string.Empty;
- }
- stop.Stop();
- Console.WriteLine(stop.Elapsed);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement