C# Class TrianglesInSpace.Time.SynchronizedClock

Inheritance: IClock, IDisposable
显示文件 Open project: anthony-martin/Triangles-in-space

Public Methods

Method Description
Dispose ( ) : void
SetMaster ( bool isMaster ) : void
SynchronizedClock ( IBus bus ) : System
UpdateTime ( double timeSinceLastUpdate ) : void

Update the time based on real time since last update

Private Methods

Method Description
OnTimeUpdate ( TimeUpdateMessage message ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

SetMaster() public method

public SetMaster ( bool isMaster ) : void
isMaster bool
return void

SynchronizedClock() public method

public SynchronizedClock ( IBus bus ) : System
bus IBus
return System

UpdateTime() public method

Update the time based on real time since last update
public UpdateTime ( double timeSinceLastUpdate ) : void
timeSinceLastUpdate double in seconds
return void