public long GetPlayerByID(int id) { Stopwatch watch = new Stopwatch(); watch.Start(); using (SportContext context = new SportContext()) { var player = context.Players.Find(id); } watch.Stop(); return watch.ElapsedMilliseconds; }