1#if !defined(RESIP_TIME_HXX)
63 return getSystemTime();
71 return getSystemTime()/1000LL;
78 return getSystemTime()/1000000LL;
94 return mMaxSystemTimeWaitMs;
102 static void queryTimerInfo(
unsigned &minRes,
unsigned &maxRes,
unsigned &actualRes,
bool &isMonotonic);
110 static unsigned mMaxSystemTimeWaitMs;
#define resip_assert(x)
This file needs to work for both C and C++ code.
Clock used for timing in the Timer class and possibly other areas.
static unsigned getMaxSystemTimeWaitMs(void)
Some monotonic clock implementations may internally only return 32-bit values that will wrap.
static uint64_t getTimeMs()
Returns the current clock time in milliseconds.
static uint64_t getTimeSecs()
Returns the current clock time in seconds.
static uint64_t getForever()
Infinit time in future.
static uint64_t getRandomFutureTimeMs(uint64_t futureMs)
Returns an absolute time in ms that is between 50% and 90% of passed in ms from now.
static uint64_t getTimeMicroSec()
Returns the current clock time in microseconds.
static void queryTimerInfo(unsigned &minRes, unsigned &maxRes, unsigned &actualRes, bool &isMonotonic)
Gets the current clock's minimum, maximum and current/actual timer resolution and returns if the cloc...
dcm! – add UnusedChecking(_enum) below;
std::mutex Mutex
A semaphore that can be locked by only one thread at a time.
void sleepSeconds(unsigned int seconds)
unsigned long long uint64_t
unsigned __int64 uint64_t