evaltime.cpp
来自「3D reconstruction, medical image process」· C++ 代码 · 共 29 行
CPP
29 行
#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 + =
减小字号Ctrl + -
显示快捷键?