static void Main(string[] args) { var stopwatch = new Stopwatch(); stopwatch.Start(); List <string> wordstream = new List <string>(); wordstream.AddRange(WordTools.SampleWordStream); for (int i = 0; i < 1000000 - wordstream.Count; i++) { wordstream.Add(WordTools.GetRandomWord()); } IEnumerable <string> ranking = _wordFinder.Find(wordstream); stopwatch.Stop(); var elapsedTicks = stopwatch.ElapsedTicks; var elapsedMilliseconds = stopwatch.ElapsedMilliseconds; System.Console.WriteLine(); System.Console.WriteLine("----------------------------------------------------"); System.Console.WriteLine("SEEDED WORDS:"); System.Console.WriteLine("----------------------------------------------------"); System.Console.WriteLine(); foreach (string word in WordTools.SampleWordStream) { System.Console.WriteLine(word); } System.Console.WriteLine(); System.Console.WriteLine("----------------------------------------------------"); System.Console.WriteLine("MATRIX:"); System.Console.WriteLine("----------------------------------------------------"); System.Console.WriteLine(); MatrixTools.PrintMatrix(MatrixTools.GetIEnumerableMatrix(_matrixSize, _matrix)); System.Console.WriteLine(); System.Console.WriteLine("----------------------------------------------------"); System.Console.WriteLine("RANKING:"); System.Console.WriteLine("----------------------------------------------------"); System.Console.WriteLine(); foreach (string word in ranking) { System.Console.WriteLine(word); } System.Console.WriteLine(); System.Console.WriteLine("----------------------------------------------------"); System.Console.WriteLine("STATS:"); System.Console.WriteLine("----------------------------------------------------"); System.Console.WriteLine(); System.Console.WriteLine($"Elapsed Milliseconds: {elapsedMilliseconds}"); System.Console.WriteLine($"Elapsed Ticks: {elapsedTicks}"); System.Console.WriteLine(); }