public static void Main()
 {
     List<string> files = Directory.GetFiles(Directory.GetCurrentDirectory()).ToList();
     int numberOfFiles = files.Count;
     DateTime timeBefore = DateTime.Now;
     Cryptographer cryptographer = new Cryptographer();
     List<string> returnedfiles = cryptographer.SynchronousEncrypt(files);
     DateTime timeAfter = DateTime.Now;
     Console.WriteLine();
     Console.WriteLine();
     Console.WriteLine(
         "There were {0} file(s) in the directory which should have taken {0} second(s) to encrypt synchronously. The actual time taken was {1} second(s).",
         numberOfFiles, (timeAfter - timeBefore).TotalSeconds);
     Console.WriteLine();
 }
        public static void Main()
        {
            List <string> files         = Directory.GetFiles(Directory.GetCurrentDirectory()).ToList();
            int           numberOfFiles = files.Count;
            DateTime      timeBefore    = DateTime.Now;
            Cryptographer cryptographer = new Cryptographer();
            List <string> returnedfiles = cryptographer.SynchronousEncrypt(files);
            DateTime      timeAfter     = DateTime.Now;

            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine(
                "There were {0} file(s) in the directory which should have taken {0} second(s) to encrypt synchronously. The actual time taken was {1} second(s).",
                numberOfFiles, (timeAfter - timeBefore).TotalSeconds);
            Console.WriteLine();
        }