Exemplo n.º 1
0
        static long MeasureSuccessor <T>(uint[] itemSet, ISortedDictionary <uint, T> dict)
        {
            GC.Collect();
            var timer = Stopwatch.StartNew();

            for (int i = 0; i < itemSet.Length; i++)
            {
                dict.Higher(itemSet[i]);
            }
            timer.Stop();
            return(timer.ElapsedMilliseconds);
        }