📄 timing.h
字号:
#if WIN32
typedef unsigned __int64 TICKS;
#pragma warning(disable:4035)
inline TICKS GetClockTicks()
{
_asm
{
_emit 0x0f
_emit 0x31
}
}
#define StartTimer() __int64 t1__ = GetClockTicks()
#define GetElapsedTicks() (GetClockTicks() - t1__)
static double TicksToSecs(TICKS t)
{
return (__int64) t/2.5e9;
}
#endif // WIN32
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -