7 #include "fwCore/HiResClock.hpp" 31 LARGE_INTEGER frequency;
32 QueryPerformanceFrequency(&frequency);
33 QueryPerformanceCounter(&count);
35 TimeInMicroSec = count.QuadPart * (1000000.0 / frequency.QuadPart);
38 gettimeofday(&count, NULL);
40 TimeInMicroSec = (count.tv_sec * 1000000.0) + count.tv_usec;
43 return TimeInMicroSec;
This namespace fwCore provides common foundations for FW4SPL.
FWCORE_API HiResClockType getTimeInMilliSec()
double HiResClockType
Type returned by HiResClock Functions.
FWCORE_API HiResClockType getTimeInMicroSec()
FWCORE_API HiResClockType getTimeInSec()