C# Class Myre.Entities.Services.TimeService

Manages wallclock time passed and counts the number of frames passed
Inheritance: Service
Exibir arquivo Open project: martindevans/Myre

Private Properties

Property Type Description
ObjectInvariant void

Public Methods

Method 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

Method Description
ObjectInvariant ( ) : void

Method Details

ConvertFromTick() public static method

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

ConvertToTick() public static method

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

Reset() public method

public Reset ( ) : void
return void

SetTime() public method

public SetTime ( double time ) : void
time double
return void

TimeService() public method

public TimeService ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

Update() public method

public Update ( float elapsedTime ) : void
elapsedTime float
return void