Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Stopwatch stop = new Stopwatch();
- int num = 0;
- stop.Start();
- while(num < 100000)
- {
- num += 1;
- Console.WriteLine(num);
- }
- stop.Stop();
- Console.WriteLine(stop.ElapsedMilliseconds.ToString());
- num = 0
- start = time.time()
- while num < 100000:
- num += 1
- print(num)
- end = time.time()
- print(end - start)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement