KVIrc
4.9.2
DeveloperAPIs
|
A class to retrieve the time interval This works for time intervals a bit longer than 24 days. More...
#include <KviTimeUtils.h>
Public Member Functions | |
KviMSecTimeInterval () | |
unsigned long | mark () |
Returns the number of milliseconds. The amount is calculated since mark() was last called (and thus marks the beginning of a new interval). More... | |
unsigned long | secondsCounter () |
Returns the number of seconds This wors ONLY in the same second that mark was called in and returns the tv_sec field of the gettimeofday() (remember that gettimeofday() is broken on windows) More... | |
Protected Attributes | |
unsigned long | m_uReferenceSecs |
unsigned long | m_uReferenceUSecs |
A class to retrieve the time interval This works for time intervals a bit longer than 24 days.
KviMSecTimeInterval::KviMSecTimeInterval | ( | ) |
References m_uReferenceSecs, and m_uReferenceUSecs.
unsigned long KviMSecTimeInterval::mark | ( | ) |
Returns the number of milliseconds. The amount is calculated since mark() was last called (and thus marks the beginning of a new interval).
References kvi_gettimeofday(), m_uReferenceSecs, and m_uReferenceUSecs.
Referenced by DccSendThread::run(), DccRecvThread::run(), DccSendThread::updateStats(), and DccRecvThread::updateStats().
|
inline |
Returns the number of seconds This wors ONLY in the same second that mark was called in and returns the tv_sec field of the gettimeofday() (remember that gettimeofday() is broken on windows)
Referenced by DccSendThread::run(), DccRecvThread::run(), DccSendThread::updateStats(), and DccRecvThread::updateStats().
|
protected |
Referenced by KviMSecTimeInterval(), and mark().
|
protected |
Referenced by KviMSecTimeInterval(), and mark().