4 #if ((defined WIN32) && (defined __CINT__))
5 #include <Windows4Root.h>
13 #endif //WIN32 && CINT
23 uint64_t
get() {
return static_cast<uint64_t
>(GetTime() - start); }
40 GetSystemTimeAsFileTime(&ft);
41 li.LowPart = ft.dwLowDateTime;
42 li.HighPart = ft.dwHighDateTime;
44 uint64_t ret = li.QuadPart;
46 ret -= 116444736000000000LL;
55 gettimeofday(&tv, NULL);
57 uint64_t ret = tv.tv_usec;
62 ret += (tv.tv_sec * 1000);
71 return out << static_cast<uint64_t>(t.GetTime() - t.start);
77 return out << static_cast<uint64_t>(t->GetTime() - t->start);
friend std::ostream & operator<<(std::ostream &out, timer &t)
friend std::ostream & operator<<(std::ostream &out, timer *t)