mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-26 00:45:20 +00:00
12 lines
274 B
C#
12 lines
274 B
C#
using Microsoft.Xna.Framework;
|
|
|
|
namespace MonoGame.Extended
|
|
{
|
|
public static class GameTimeExtensions
|
|
{
|
|
public static float GetElapsedSeconds(this GameTime gameTime)
|
|
{
|
|
return (float) gameTime.ElapsedGameTime.TotalSeconds;
|
|
}
|
|
}
|
|
} |