Guest User

Untitled

a guest
May 29th, 2020
50
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace meditationInterface
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             DateTime s, f = new DateTime();
  10.             TimeSpan part, all = new TimeSpan();
  11.             TimeSpan avg = new TimeSpan();
  12.             int count = 0;
  13.             Console.WriteLine("Press any key to start");
  14.             Console.ReadKey();
  15.             Console.WriteLine("Started!");
  16.             Console.WriteLine("--------------------------------------------");
  17.             while (true)
  18.             {
  19.                 s = DateTime.Now;
  20.                 Console.ReadKey();
  21.                 f = DateTime.Now;
  22.                 part = f.Subtract(s);
  23.                 all += part;
  24.                 count++;
  25.                 avg = all / count;
  26.                 Console.WriteLine("--------------------------------------------");
  27.                 Console.Write("This part: ");
  28.                 Console.WriteLine( part);
  29.                 Console.Write("Distractions: ");
  30.                 Console.WriteLine(count);
  31.                 Console.Write("Äverage part length: ");
  32.                 Console.WriteLine(avg);
  33.                 Console.WriteLine("--------------------------------------------");
  34.             }
  35.         }
  36.     }
  37. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×