public void GameLoop() { TimeManager.Update(); Sort(); TimeManager.TimeSection("After Sort"); AI(); Sound(); TimeManager.TimeSection("After AI and Sound"); Draw(); TimeManager.TimeSection("After Draw"); } // would output: " After Sort: .000132 After AI and Sound: .00233 After Draw: .04223 "