18 #if defined(_WIN32) && !defined(__MINGW32__) 25 #if defined(_WIN32) && !defined(__MINGW32__) 33 void gettimeofday(
struct timeval* p,
struct timezone *tz)
41 GetSystemTimeAsFileTime(&(_now.ft));
42 p->tv_usec=(long)((_now.ns100 / 10LL) % 1000000LL);
43 p->tv_sec= (long)((_now.ns100-(116444736000000000LL))/10000000LL);
54 gettimeofday(&tv, &tz);
56 return absolute_timet(tv.tv_usec/1000+(
unsigned long long)tv.tv_sec*1000);
61 return out << static_cast<double>(period.
get_t())/1000;
66 std::ostringstream out;
std::string as_string() const
std::ostream & operator<<(std::ostream &out, const time_periodt &period)
unsigned long long get_t() const
absolute_timet current_time()