Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Stopwatch stop = new Stopwatch();
  2. int num = 0;
  3. stop.Start();
  4. while(num < 100000)
  5. {
  6. num += 1;
  7. Console.WriteLine(num);
  8. }
  9. stop.Stop();
  10. Console.WriteLine(stop.ElapsedMilliseconds.ToString());
  11.  
  12. num = 0
  13. start = time.time()
  14. while num < 100000:
  15. num += 1
  16. print(num)
  17.  
  18. end = time.time()
  19. print(end - start)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement