![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cTimeTick.h>
Public Attributes | |
const TIMETICK_t | m_nTimeFreq |
Desired tick freq. TIMETICK_FREQ. More... | |
Protected Attributes | |
cThreadLockCount | m_Lock |
Make this thread safe. More... | |
TIMETICK_t | m_nTimeDiv |
Desired tick freq. TIMETICK_FREQ per real second. More... | |
cTimeSys | m_TimeSysLast |
cTimeSys::GetTimeNow() of the last AdvanceTimeSpec(). "(1/cTimeSys::k_FREQ)" More... | |
![]() | |
TIMETICK_t | m_PrivateTime |
m_nTimeFreq arbitrary frequency More... | |
Additional Inherited Members | |
![]() | |
static bool | isSingleCreated () noexcept |
static cTimeTickMaster * | get_SingleU () noexcept |
static cTimeTickMaster * | get_Single () |
static TYPE2 *__stdcall | get_SingleCast () |
static cTimeTickMaster & | I () noexcept |
![]() | |
static cTimeTickBase GRAYCALL | GetTickCount () |
from cTimeTickMaster More... | |
static TIMETICK_t GRAYCALL | GetTickFreq () |
![]() | |
static const TIMETICK_t | k_NEVER = ((TIMETICK_t)(-1)) |
![]() | |
cSingletonStatic (cTimeTickMaster *pObject) noexcept | |
virtual | ~cSingletonStatic () noexcept |
![]() | |
static cTimeTickMaster * | sm_pThe |
pointer to the one and only object of this TYPE. ASSUME automatically init to = nullptr. More... | |
takes the system time and converts it to a more local tick time. the current relative tick time (in m_nTimeFreq)
GrayLib::cTimeTickMaster::cTimeTickMaster | ( | TIMETICK_t | nTimeFreq = cTimeSys::k_FREQ , |
TIMETICK_t | lTimeBase = 1 |
||
) |
GrayLib::cTimeTickMaster::~cTimeTickMaster | ( | ) |
bool GrayLib::cTimeTickMaster::AdvanceTimeSpec | ( | ) |
Get current time. Watch for system clock overflow. ASSERT(0) on TIMETICK_t overflow!
void GrayLib::cTimeTickMaster::InitTime | ( | TIMETICK_t | lTimeBase | ) |
GrayLib::cTimeTickMaster::UNITTEST_FRIEND | ( | cTimeTick | ) |
|
mutableprotected |
Make this thread safe.
|
protected |
Desired tick freq. TIMETICK_FREQ per real second.
const TIMETICK_t GrayLib::cTimeTickMaster::m_nTimeFreq |
Desired tick freq. TIMETICK_FREQ.
|
protected |
cTimeSys::GetTimeNow() of the last AdvanceTimeSpec(). "(1/cTimeSys::k_FREQ)"