예제 #1
0
        private static ISpatialIndex BuildIndex(ISpatialIndexBuilder builder, IQueryable <Location> locations)
        {
            Console.Write("Building index.. ");

            var timer = Stopwatch.StartNew();

            var index = builder.BuildIndex(locations);

            timer.Stop();

            Console.WriteLine("ok ({0} ms)", timer.ElapsedMilliseconds);

            return(index);
        }
예제 #2
0
파일: Program.cs 프로젝트: clapis/roamler
        private static ISpatialIndex BuildIndex(ISpatialIndexBuilder builder, IQueryable<Location> locations)
        {
            Console.Write("Building index.. ");

            var timer = Stopwatch.StartNew();

            var index = builder.BuildIndex(locations);

            timer.Stop();

            Console.WriteLine("ok ({0} ms)", timer.ElapsedMilliseconds);

            return index;
        }