Beispiel #1
0
/****************************************************************************
REMARKS:
This function reads the high resolution timer.
****************************************************************************/
void NAPI GA_TimerRead(
    GA_largeInteger *value)
{
    if (haveRDTSC)
	_GA_readTimeStamp(value);
    else
	DosTmrQueryTime((QWORD*)value);
}
Beispiel #2
0
/****************************************************************************
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);
}
Beispiel #3
0
/****************************************************************************
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);
}
Beispiel #4
0
/****************************************************************************
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);
}
Beispiel #5
0
/****************************************************************************
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;
	}
}
Beispiel #6
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;
		}
}
Beispiel #7
0
/****************************************************************************
REMARKS:
This function reads the high resolution timer.
****************************************************************************/
void NAPI GA_TimerRead(
    GA_largeInteger *value)
{
    _GA_readTimeStamp(value);
}