Example #1
0
        public void LDriver(string[] checkList, HashMap hashMap)
        {
            var timer = new Stopwatch();

            for (int i = 0; i < checkList.Length; i++)
            {
                timer.Start();
                string result = hashMap.LGet(long.Parse(checkList[i]));
                timer.Stop();

                Console.Write("Found Key: " + checkList[i] + " with data " + result + " ");
                Console.WriteLine("Time of search: " + timer.Elapsed);
                timer.Reset();
            }
        }