1 2 3 4 5 6 7 8 9 10 11 12
using Microsoft.Xna.Framework; namespace MonoGame.Extended { public static class GameTimeExtensions { public static float GetElapsedSeconds(this GameTime gameTime) { return (float) gameTime.ElapsedGameTime.TotalSeconds; } } }