|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
This class is used to get the current system time. More...
#include <Timer.hxx>
Public Types | |
| enum | Type { TimerA , TimerB , TimerC , TimerD , TimerE1 , TimerE2 , TimerF , TimerG , TimerH , TimerI , TimerJ , TimerK , TimerTrying , TimerStaleClient , TimerStaleServer , TimerStateless , TimerCleanUp , ApplicationTimer , TcpConnectTimer } |
Public Member Functions | |
| RESIP_HeapCount (Timer) | |
Static Public Member Functions | |
| static Data | toData (Type timer) |
| static void | setupTimeOffsets () |
| static uint64_t | getTimeMicroSec () |
| Returns the current clock time in microseconds. | |
| 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 | 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 | getForever () |
| Infinit time in future. | |
| static unsigned | getMaxSystemTimeWaitMs (void) |
| On windows, change getSystemTime() to not use the actual clock time returned by GetSystemTime(). | |
| static void | resetT1 (unsigned long t1) |
Static Public Attributes | |
| static unsigned long | T1 = 500 |
| static unsigned long | T2 = 8 * T1 |
| static unsigned long | T4 = 10 * T1 |
| static unsigned long | T100 = 80 |
| static unsigned long | TB = 64*T1 |
| static unsigned long | TC = 3*60*1000 |
| static unsigned long | TF = 64*T1 |
| static unsigned long | TH = 64*T1 |
| static unsigned long | TD = 32000 |
| static unsigned long | TS = 32000 |
| static unsigned long | TcpConnectTimeout = 0 |
This class is used to get the current system time.
| enum resip::Timer::Type |
|
inlinestatic |
|
inlinestatic |
On windows, change getSystemTime() to not use the actual clock time returned by GetSystemTime().
The replacement time function on some versions of windows (< Vista, GetTickCount()) returns a 32-bit value, so it will rollover at some point. Any code that waits on timers should not wait longer than this value.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| resip::Timer::RESIP_HeapCount | ( | Timer | ) |
|
inlinestatic |