![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cTimeTick.h>
Public Member Functions | |
| bool | isTimeValid () const noexcept |
| bool | isTimeFuture () const noexcept |
| void | InitTime (TIMETICK_t lTimeBase=k_NEVER) noexcept |
| void | InitTimeNow () |
| void | InitTimeNowPlusTicks (TIMETICKD_t iOffsetTicks) |
| TIMETICK_t | get_TimeTicks () const noexcept |
| operator TIMETICK_t () const noexcept | |
| int | GetTimeSinceTick (const cTimeTickBase &time) const noexcept |
| TIMETICKD_t | get_TimeTilTick () const |
| TIMETICKD_t | get_AgeTick () const |
| void | InitTimeNowPlusSec (TIMESECF_t fOffsetSec) |
| TIMESECF_t | get_TimeTilSec () const |
| TIMESECF_t | get_AgeSec () const |
| cTimeTickBase | operator+ (TIMETICKD_t iTimeDiff) const |
| cTimeTickBase | operator- (TIMETICKD_t iTimeDiff) const |
| int | operator- (cTimeTickBase time) const |
| bool | operator== (cTimeTickBase time) const |
| bool | operator!= (cTimeTickBase time) const |
| bool | operator< (cTimeTickBase time) const |
| bool | operator> (cTimeTickBase time) const |
| bool | operator<= (cTimeTickBase time) const |
| bool | operator>= (cTimeTickBase time) const |
Static Public Member Functions | |
| static cTimeTickBase GRAYCALL | GetTickCount () |
| from cTimeTickMaster More... | |
| static TIMETICK_t GRAYCALL | GetTickFreq () |
Static Public Attributes | |
| static const TIMETICK_t | k_NEVER = ((TIMETICK_t)(-1)) |
Protected Attributes | |
| TIMETICK_t | m_PrivateTime |
| m_nTimeFreq arbitrary frequency More... | |
My private time units (in a simulation). Fair accuracy and resolution for 32 bits. Arbitrary number of ticks per second. based on cTimeTickMaster Not initialized.
|
inline |
|
inline |
How old is this (in ticks)? current time - this time. In m_nTimeFreq
|
inlinenoexcept |
|
inline |
|
inline |
How long till this happens? this time - current time.
|
inlinestatic |
from cTimeTickMaster
Get the current time (in ticks) from cTimeTickMaster m_nTimeFreq GetCurrentTime(); is macroed by windows to GetTickCount !!!
|
inlinestatic |
Get ticks per real second.
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
fOffsetSec = seconds.
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
protected |
m_nTimeFreq arbitrary frequency