C# Class Myre.Entities.Services.TimeService

Manages wallclock time passed and counts the number of frames passed
Inheritance: Service
Afficher le fichier Open project: martindevans/Myre

Private Properties

Свойство Type Description
ObjectInvariant void

Méthodes publiques

Méthode Description
ConvertFromTick ( uint tick ) : double

convert the given tick into the associated time value

ConvertToTick ( double time ) : uint

Convert the given time into the associated tick value

Reset ( ) : void
SetTime ( double time ) : void
TimeService ( Microsoft.Xna.Framework.Game game ) : System
Update ( float elapsedTime ) : void

Private Methods

Méthode Description
ObjectInvariant ( ) : void

Method Details

ConvertFromTick() public static méthode

convert the given tick into the associated time value
public static ConvertFromTick ( uint tick ) : double
tick uint
Résultat double

ConvertToTick() public static méthode

Convert the given time into the associated tick value
public static ConvertToTick ( double time ) : uint
time double
Résultat uint

Reset() public méthode

public Reset ( ) : void
Résultat void

SetTime() public méthode

public SetTime ( double time ) : void
time double
Résultat void

TimeService() public méthode

public TimeService ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Résultat System

Update() public méthode

public Update ( float elapsedTime ) : void
elapsedTime float
Résultat void