Commits

alexdavies74  committed 16bb8e9

Smooth the count over time

  • Participants
  • Parent commits 5ca38fa

Comments (0)

Files changed (1)

File ConsoleApplication2/Program.cs

     /// </summary>
     class Program
     {
-        private const int s_Iterations = 100000000;
+        private const int s_Iterations = 10000000;
 
         static void Main(string[] args)
         {
                 if (expected % s_Iterations == 0)
                 {
                     Console.SetCursorPosition(0, instance);
-                    double rate = s_Iterations/(DateTime.Now - lastUpdate).TotalMilliseconds;
+                    double rate = expected/(DateTime.Now - lastUpdate).TotalMilliseconds;
                     Console.WriteLine(instance.ToString() + ": " + rate);
-                    lastUpdate = DateTime.Now;
                 }
             }
         }