Beispiel #1
0
        public ActionResult StopGroups()
        {
            var allStops   = DbDataManager.GetAllStops();
            var stopGroups = DbDataManager.GetStopGroups(50);

            ViewBag.Message = "Stop Groups teszt: " + stopGroups.Count + " / " + allStops.Count;
            return(View(stopGroups));
        }
Beispiel #2
0
        static void FindStopGroups()
        {
            Console.Write("Finding Groups...");
            var stopwatch = new Stopwatch();

            stopwatch.Start();
            var allStops   = DbDataManager.GetAllStops();
            var stopGroups = DbDataManager.GetStopGroups(100);

            stopwatch.Stop();

            Console.WriteLine("\t" + stopGroups.Count + " / " + allStops.Count + "\t" + (stopwatch.ElapsedMilliseconds / 1000.0) + "s");
        }