GameTimeExtensions.cs 274 B

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