Pictel 2d 0.1
Game Engine Documentation
Public Member Functions | List of all members
engine::TimeI Class Referenceabstract

Public Member Functions

virtual uint64_t GetEngineStart ()=0
 
virtual double GetEngineStartSec ()=0
 
virtual uint64_t GetFrameStart ()=0
 
virtual double GetFrameStartSec ()=0
 
virtual uint64_t GetFrameDelta ()=0
 
virtual double GetFrameDeltaSec ()=0
 

Member Function Documentation

◆ GetEngineStart()

virtual uint64_t engine::TimeI::GetEngineStart ( )
pure virtual

Returns the number of milliseconds since the moment the drawing engine started. For SDL as the drawing library this resets ~49 days.

◆ GetEngineStartSec()

virtual double engine::TimeI::GetEngineStartSec ( )
pure virtual

The same as Time::GetEngineStart() but in seconds.

◆ GetFrameDelta()

virtual uint64_t engine::TimeI::GetFrameDelta ( )
pure virtual

Returns the interval between the last frame and the current one in milliseconds.

◆ GetFrameDeltaSec()

virtual double engine::TimeI::GetFrameDeltaSec ( )
pure virtual

The same as Time::GetFrameDelta() but in seconds.

◆ GetFrameStart()

virtual uint64_t engine::TimeI::GetFrameStart ( )
pure virtual

Returns the number of milliseconds from the frame start.

◆ GetFrameStartSec()

virtual double engine::TimeI::GetFrameStartSec ( )
pure virtual

The same as Time::GetFrameStart() but in seconds.