#ifndef _INCLUDE_TIME_STAMP_HPP #define _INCLUDE_TIME_STAMP_HPP #include #ifndef WIN32 #include #endif struct TIME{ static uint64_t getMilliseconds() { #ifndef WIN32 struct timeval tv; ::gettimeofday(&tv, 0); return tv.tv_sec*1000+tv.tv_usec/1000; #else struct timeb tb; ::ftime(&tb); return tb.time*1000+tb.millitm; #endif } }; #endif