--- zlibrary/core/src/unix/time/ZLUnixTime.cpp.orig 2014-01-11 12:45:25 UTC +++ zlibrary/core/src/unix/time/ZLUnixTime.cpp @@ -17,17 +17,16 @@ * 02110-1301, USA. */ -#include -#include +#include #include #include "ZLUnixTime.h" ZLTime ZLUnixTimeManager::currentTime() const { - struct timeb timeB; - ftime(&timeB); - return ZLTime((long)timeB.time, timeB.millitm); + struct timeval timeB; + gettimeofday(&timeB,NULL); + return ZLTime((long)timeB.tv_sec, timeB.tv_usec/1000); } short ZLUnixTimeManager::hoursBySeconds(long seconds) const {