/**************************************************************************** REMARKS: This function reads the high resolution timer. ****************************************************************************/ void NAPI GA_TimerRead( GA_largeInteger *value) { if (haveRDTSC) _GA_readTimeStamp(value); else DosTmrQueryTime((QWORD*)value); }
/**************************************************************************** REMARKS: This function reads the high resolution timer. ****************************************************************************/ void NAPI GA_TimerRead( GA_largeInteger *value) { if (haveRDTSC) _GA_readTimeStamp(value); else KeQuerySystemTime((LARGE_INTEGER*)value); }
/**************************************************************************** REMARKS: This function reads the high resolution timer. ****************************************************************************/ void NAPI GA_TimerRead( GA_largeInteger *value) { if (haveRDTSC) _GA_readTimeStamp(value); else QueryPerformanceCounter((LARGE_INTEGER*)value); }
/**************************************************************************** REMARKS: This function reads the high resolution timer. ****************************************************************************/ void NAPI GA_TimerRead( GA_largeInteger *value) { if (haveRDTSC) _GA_readTimeStamp(value); else VTD_Get_Real_Time(&value->high,&value->low); }
/**************************************************************************** REMARKS: This function reads the high resolution timer. ****************************************************************************/ void NAPI GA_TimerRead( GA_largeInteger *value) { if (haveRDTSC) _GA_readTimeStamp(value); else { struct timeval t; gettimeofday(&t, NULL); value->low = t.tv_sec*1000000 + t.tv_usec; value->high = 0; } }
/**************************************************************************** REMARKS: This function reads the high resolution timer. ****************************************************************************/ void NAPI GA_TimerRead( GA_largeInteger *value) { if (haveRDTSC) _GA_readTimeStamp(value); else { struct timespec ts; clock_gettime(CLOCK_REALTIME, &ts); value->low = (ts.tv_nsec / 1000 + ts.tv_sec * 1000000); value->high = 0; } }
/**************************************************************************** REMARKS: This function reads the high resolution timer. ****************************************************************************/ void NAPI GA_TimerRead( GA_largeInteger *value) { _GA_readTimeStamp(value); }