Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Diagnostics;
- namespace simple_performance_test
- {
- class Program
- {
- static void Main(string[] args)
- {
- Stopwatch clock = new Stopwatch();
- while (true)
- {
- Console.WriteLine("");
- Console.WriteLine("Starting Test");
- clock.Restart();
- int i = 0;
- for (; i < 1000000000; i++) ;
- clock.Stop();
- Console.WriteLine("Took " + clock.ElapsedMilliseconds + " to iterate to " + i);
- Console.ReadKey();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement