Click or drag to resize
TimeManager Class
Provide time-related utilities.
Inheritance Hierarchy
SystemObject
  GeonBit.ManagersTimeManager

Namespace:  GeonBit.Managers
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class TimeManager : IManager

The TimeManager type exposes the following members.

Properties
  NameDescription
Public propertyElapsedTime
Get elapsed time since last frame. Note: does not affected by TimeSpeed.
Public propertyFixedTimeFactor
Get time factor for fixed-update.
Public propertyFixedUpdateInterval
The interval, in seconds, of the FixedUpdate event.
Public propertyGameTime
Get last game-time instance.
Public propertyStatic memberInstance
Get time utils instance.
Public propertyTimeFactor
Get time factor for current frame (represent time passed in seconds since last frame, multiplied by speed).
Public propertyTimeSinceLastUpdate
Get time, in seconds, since last update().
Public propertyTotalTime
Get total time including all frames. Note: does not affected by TimeSpeed.
Top
Methods
  NameDescription
Public methodDraw
Called every frame during the Draw() process.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFixedUpdate
Called every constant X seconds during the Update() phase.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Init time utils manager.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Update current time.
Top
Fields
  NameDescription
Public fieldDesiredFixedFramesPerSecond
How many FPS we want to get for fixed update functions.
Public fieldTimeSpeed
Global speed factor to affect game timing.
Top
See Also