com.onlineobject.objectnet Namespace

NetworkClockDefault Members

The NetworkClockDefault type exposes the following members.

Constructors


  Name Description
Public method NetworkClockDefault
Constructor for the NetworkClockDefault class.

Methods


  Name Description
Public method GetDeltaFrames
Retrieves the number of frames between the current and previous update.
Public method GetDeltaTime
Retrieves the time difference in seconds between the current and previous update.
Public method GetTick
Retrieves the current tick count, updating it based on the elapsed time since the last tick.
Public method GetTime
Retrieves the current time in seconds since the clock started.
Public method Initialize
Initializes the network clock, setting up the necessary variables and starting the timekeeping process.
Public method SetTargetFramerate
Sets the target framerate for the clock, adjusting the time between ticks accordingly.
Public method UpdateTick
Updates the current tick count to a specified value.