142 double startTimeInMicroSec = 0;
143 double endTimeInMicroSec = 0;
147 QueryPerformanceCounter(&endCount);
149 startTimeInMicroSec =
150 startCount.QuadPart * (1000000.0 / frequency.QuadPart);
151 endTimeInMicroSec = endCount.QuadPart * (1000000.0 / frequency.QuadPart);
154 endCount = mach_absolute_time();
156 return subtractTimes(endCount,startCount)/1e-6;
159 gettimeofday(&endCount, NULL);
161 startTimeInMicroSec =
162 (startCount.tv_sec * 1000000.0) + startCount.tv_usec;
163 endTimeInMicroSec = (endCount.tv_sec * 1000000.0) + endCount.tv_usec;
166 return endTimeInMicroSec - startTimeInMicroSec;