DDraceNetwork Docs
CTimeStep Class Reference

Public Member Functions

template<class T >
 CTimeStep (T t)
 
CTimeStep operator* (int k) const
 
CTimeStep operator- (const CTimeStep &Other)
 
void Format (char *pBuffer, size_t BufferSize)
 
float AsSeconds () const
 

Private Types

enum class  ETimeUnit { MILLISECONDS , SECONDS , MINUTES }
 

Private Member Functions

 CTimeStep (std::chrono::milliseconds Value, ETimeUnit Unit)
 

Private Attributes

enum CTimeStep::ETimeUnit m_Unit
 
std::chrono::milliseconds m_Value
 

Member Enumeration Documentation

◆ ETimeUnit

enum class CTimeStep::ETimeUnit
strongprivate
Enumerator
MILLISECONDS 
SECONDS 
MINUTES 

Constructor & Destructor Documentation

◆ CTimeStep() [1/2]

template<class T >
CTimeStep::CTimeStep ( t)
inline

◆ CTimeStep() [2/2]

CTimeStep::CTimeStep ( std::chrono::milliseconds  Value,
ETimeUnit  Unit 
)
inlineprivate

Member Function Documentation

◆ AsSeconds()

float CTimeStep::AsSeconds ( ) const
inline

◆ Format()

void CTimeStep::Format ( char *  pBuffer,
size_t  BufferSize 
)
inline

◆ operator*()

CTimeStep CTimeStep::operator* ( int  k) const
inline

◆ operator-()

CTimeStep CTimeStep::operator- ( const CTimeStep Other)
inline

Member Data Documentation

◆ m_Unit

enum CTimeStep::ETimeUnit CTimeStep::m_Unit
private

◆ m_Value

std::chrono::milliseconds CTimeStep::m_Value
private

The documentation for this class was generated from the following file: