Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System;
  2. using System.Diagnostics;
  3. using System.Threading;
  4.  
  5. namespace sample1
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. Stopwatch time = new Stopwatch();
  12. time.Start();
  13. double i = 0;
  14. while (i < 10000000000) {
  15. Math.Sin(i);
  16. i++;
  17. }
  18. time.Stop();
  19.  
  20. Console.WriteLine(time.Elapsed.TotalMilliseconds);
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement