📄 evaltime.cpp
字号:
#include "stdafx.h"#include "evaltime.h"RxEvalTime::RxEvalTime(){ QueryPerformanceFrequency(&m_liFrequency); QueryPerformanceCounter(&m_liStart);}RxEvalTime::~RxEvalTime(){}void RxEvalTime::RestartTimer(){ QueryPerformanceCounter(&m_liStart);}double RxEvalTime::GetElapsedTime(BOOL bRestart){ LARGE_INTEGER liNow; QueryPerformanceCounter(&liNow); double fElapsedTime = (liNow.QuadPart - m_liStart.QuadPart) / (double)m_liFrequency.QuadPart; if (bRestart) QueryPerformanceCounter(&m_liStart); return fElapsedTime;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -