summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/source/MonoGame.Extended/GameTimeExtensions.cs
blob: 01c879021b0d8402108b944460a000608863dc59 (plain)
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;
        }
    }
}