39 #define kvi_unixTime() time(0)
40 #define kvi_timeSpan(_time_now, _time_before) ((_time_now) - (_time_before))
41 #define kvi_secondsSince(_that_time_t) kvi_timeSpan(kvi_unixTime(), _that_time_t)
43 #define kvi_time_t time_t
45 #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
66 gettimeofday(tmv, tmz);
107 namespace KviTimeUtils
125 unsigned int * uD,
unsigned int * uH,
unsigned int * uM,
unsigned int * uS);
144 #endif //_KVI_TIME_H_
Definition: KviTimeUtils.h:130
unsigned long m_uReferenceSecs
Definition: KviTimeUtils.h:81
A class to retrieve the time interval This works for time intervals a bit longer than 24 days...
Definition: KviTimeUtils.h:75
long long getCurrentTimeMills()
Returns the current time mills.
Definition: KviTimeUtils.cpp:81
unsigned long m_uReferenceUSecs
Definition: KviTimeUtils.h:82
FormatTimeSpanFlags
Definition: KviTimeUtils.h:128
unsigned long secondsCounter()
Returns the number of seconds This wors ONLY in the same second that mark was called in and returns t...
Definition: KviTimeUtils.h:100
QString formatTimeInterval(unsigned int uSeconds, int iFlags)
Returns a string formatted like x d x h xx m xx s.
Definition: KviTimeUtils.cpp:100
Definition: KviTimeUtils.h:132
This file contains compile time settings.
void kvi_gettimeofday(struct timeval *tmv, struct timezone *tmz)
Gets the time of the day.
Definition: KviTimeUtils.h:64
void secondsToDaysHoursMinsSecs(unsigned int uSecs, unsigned int *uD, unsigned int *uH, unsigned int *uM, unsigned int *uS)
Splits the time span uSecs in days, hours, minutes and seconds.
Definition: KviTimeUtils.cpp:89
#define KVILIB_API
Definition: kvi_settings.h:125
Definition: KviTimeUtils.h:131