![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cTimeSys.h>
Public Member Functions | |
cTimeSys () noexcept | |
cTimeSys (const cTimeSys &t) noexcept | |
cTimeSys (TIMESYS_t t) noexcept | |
bool | isTimeValid () const noexcept |
TIMESYS_t | get_TimeSys () const noexcept |
void | InitTime (TIMESYS_t t=k_CLEAR) noexcept |
void | InitTimeNow () noexcept |
void | InitTimeNowPlusSys (TIMESYSD_t iOffset) noexcept |
void | InitTimeNowPlusSec (float fOffsetSec) noexcept |
bool | isTimeFuture () const noexcept |
TIMESYSD_t | get_TimeTilSys () const noexcept |
TIMESYSD_t | get_AgeSys () const noexcept |
TIMESECF_t | get_TimeTilSecF () const noexcept |
TIMESECF_t | get_AgeSecF () const noexcept |
TIMESECD_t | get_AgeSec () const noexcept |
Static Public Member Functions | |
static TIMESYS_t | GetTimeNow () noexcept |
static unsigned long __stdcall | WaitSpin (TIMESYSD_t t) |
Static Public Attributes | |
static const TIMESYS_t | k_CLEAR = 0 |
static const TIMESYS_t | k_FREQ = 1000 |
milliSec per Sec More... | |
static const TIMESYS_t | k_INF = UINT_MAX |
INFINITE in _WIN32. MAILSLOT_WAIT_FOREVER. More... | |
static const TIMESYSD_t | k_DMAX = INT_MAX |
Max diff in time. More... | |
Friends | |
class | cTimeSysTests |
Time in milliseconds from arbitrary/unknown start time. Unsigned 32 bits will roll every 49.7 days. _WIN32 = start time = when system was last rebooted.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
How old is this? (in seconds) current time - this time.
|
inlinenoexcept |
in float seconds.
|
inlinenoexcept |
How long ago was this ? (was TIMESYS_GetAge(x))
|
inlinenoexcept |
|
inlinenoexcept |
in float seconds.
|
inlinenoexcept |
How long until this time (msec)
|
inlinestaticnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
static |
Wait a certain amount of time. Spin instead of sleeping. Do NOT yield time to other threads. (NOT Sleep)
|
friend |
|
static |
|
static |
Max diff in time.
|
static |
milliSec per Sec
|
static |
INFINITE in _WIN32. MAILSLOT_WAIT_FOREVER.