![]() |
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... | |
Protected Attributes inherited from GrayLib::cTimeTickBase | |
| TIMETICK_t | m_PrivateTime |
| m_nTimeFreq arbitrary frequency More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gray::cSingletonStatic< cTimeTickMaster > | |
| static bool | isSingleCreated () noexcept |
| static cTimeTickMaster * | get_SingleU () noexcept |
| static cTimeTickMaster * | get_Single () |
| static TYPE2 *__stdcall | get_SingleCast () |
| static cTimeTickMaster & | I () noexcept |
Static Public Member Functions inherited from GrayLib::cTimeTickBase | |
| static cTimeTickBase GRAYCALL | GetTickCount () |
| from cTimeTickMaster More... | |
| static TIMETICK_t GRAYCALL | GetTickFreq () |
Static Public Attributes inherited from GrayLib::cTimeTickBase | |
| static const TIMETICK_t | k_NEVER = ((TIMETICK_t)(-1)) |
Protected Member Functions inherited from Gray::cSingletonStatic< cTimeTickMaster > | |
| cSingletonStatic (cTimeTickMaster *pObject) noexcept | |
| virtual | ~cSingletonStatic () noexcept |
Static Protected Attributes inherited from Gray::cSingletonStatic< cTimeTickMaster > | |
| 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)"