?? rdtsc.h
字號:
/*
* An alternative of the "RDTSC" instruction
* by Mr.Nodman
* 2003-12-03
*/
#ifndef _RDTSC_H
#define _RDTSC_H
#pragma warning(disable:4035) // disable warning: "no return value"
extern ULONGLONG get_tick_count()
{
/*
* high precision version "GetTickCount"
* which could read time interval up to nano-second
*
* the following instructions are equal to instruction "rdtsc"
* after execution an unsigned __int64 integer is
* pushed into stack as a return value.
* that is what we want.
*
* ok, some versions of compilers recognize "RDTSC"
*/
__asm _emit 0x0f
__asm _emit 0x31
//__asm rdtsc
}
#pragma warning(default:4035)
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -