// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. using System; namespace Microsoft.Xna.Framework { public class GameTime { public TimeSpan TotalGameTime { get; set; } public TimeSpan ElapsedGameTime { get; set; } public bool IsRunningSlowly { get; set; } public GameTime() { TotalGameTime = TimeSpan.Zero; ElapsedGameTime = TimeSpan.Zero; IsRunningSlowly = false; } public GameTime(TimeSpan totalGameTime, TimeSpan elapsedGameTime) { TotalGameTime = totalGameTime; ElapsedGameTime = elapsedGameTime; IsRunningSlowly = false; } public GameTime (TimeSpan totalRealTime, TimeSpan elapsedRealTime, bool isRunningSlowly) { TotalGameTime = totalRealTime; ElapsedGameTime = elapsedRealTime; IsRunningSlowly = isRunningSlowly; } } }