Implemented a hopefully-functioning GameTime system, copied largely from MonoGame.