コード例 #1
0
ファイル: aaos2.c プロジェクト: A1DEVS/lenovo_a1_07_uboot
/****************************************************************************
REMARKS:
This function reads the high resolution timer.
****************************************************************************/
void NAPI GA_TimerRead(
    GA_largeInteger *value)
{
    if (haveRDTSC)
	_GA_readTimeStamp(value);
    else
	DosTmrQueryTime((QWORD*)value);
}
コード例 #2
0
ファイル: gantdrv.c プロジェクト: kendallb/scitech-mgl
/****************************************************************************
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);
}
コード例 #3
0
ファイル: gawin32.c プロジェクト: OS2World/LIB-VIDEO-MGL
/****************************************************************************
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);
}
コード例 #4
0
ファイル: gavxd.c プロジェクト: A1DEVS/lenovo_a1_07_uboot
/****************************************************************************
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);
}
コード例 #5
0
ファイル: gabeos.c プロジェクト: A1DEVS/lenovo_a1_07_uboot
/****************************************************************************
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;
	}
}
コード例 #6
0
ファイル: gaqnx.c プロジェクト: OS2World/LIB-VIDEO-MGL
/****************************************************************************
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;
		}
}
コード例 #7
0
ファイル: gados.c プロジェクト: A1DEVS/lenovo_a1_07_uboot
/****************************************************************************
REMARKS:
This function reads the high resolution timer.
****************************************************************************/
void NAPI GA_TimerRead(
    GA_largeInteger *value)
{
    _GA_readTimeStamp(value);
}