Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics;
- using System.Threading;
- namespace sample1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Stopwatch time = new Stopwatch();
- time.Start();
- double i = 0;
- while (i < 10000000000) {
- Math.Sin(i);
- i++;
- }
- time.Stop();
- Console.WriteLine(time.Elapsed.TotalMilliseconds);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement