![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cTimeSys.h>
Public Member Functions | |
cTimePerf (TIMEPERF_t nTime=0) noexcept | |
cTimePerf (int nTime) noexcept | |
cTimePerf (bool bTrue) noexcept | |
bool | isTimeValid () const noexcept |
void | InitTimeNow () noexcept |
TIMEPERF_t | get_Perf () const noexcept |
TIMEPERF_t | GetAgeDiff (cTimePerf tStop) const noexcept |
TIMEPERF_t | get_AgePerf () const noexcept |
double | get_Seconds () const noexcept |
double | get_AgeSeconds () const noexcept |
double | get_Days () const noexcept |
Static Public Member Functions | |
static bool __stdcall | InitFreq () noexcept |
static double __stdcall | ToSeconds (TIMEPERF_t t) noexcept |
static double __stdcall | ToDays (TIMEPERF_t t) noexcept |
Public Attributes | |
TIMEPERF_t | m_nTime |
Arbitrary start time in k_nFreq units. 64 byte unsigned type. More... | |
Static Public Attributes | |
static const TIMEPERF_t | sm_nFreq = cTimeSpec::k_FREQ |
nanosecond accurate. for linux using cTimeSpec More... | |
Very high rate timer. 64 bit. like the X86 'rdtsc' instruction. TIMEPERF_t = The system very high precision performance timer. Maybe nSec ?
|
inlinenoexcept |
default = init to 0.
|
inlinenoexcept |
default = init to 0. Allow constants to not have a convert.
|
inlinenoexcept |
|
inlinenoexcept |
how long ago was this ?
|
inlinenoexcept |
how long ago was this ? TIMESECF_t
|
inlinenoexcept |
Convert cTimePerf to double days (from arbitrary start time).
|
inlinenoexcept |
Get the time stamp.
|
inlinenoexcept |
convert arbitrary start time to seconds (type = double) TIMESECF_t
|
inlinenoexcept |
how long ago was this ?
need to call this once in _WIN32 to capture the k_nFreq
|
noexcept |
QueryPerformanceCounter() is better than 'rdtsc' for multi core. available >= Windows 2000
|
inlinenoexcept |
|
staticnoexcept |
Convert cTimePerf to double days (from arbitrary start time).
|
inlinestaticnoexcept |
TIMEPERF_t Gray::cTimePerf::m_nTime |
Arbitrary start time in k_nFreq units. 64 byte unsigned type.
|
static |
nanosecond accurate. for linux using cTimeSpec