?? test.cpp
字號:
// test.cpp: implementation of the test class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Performance.h"
#include "test.h"
#include <mmsystem.h>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
test::test()
{
}
test::~test()
{
}
void Block1(){
}
void Block2(){
}
void functionB();
void functionA(void) {
BM_START(0) // 對functionB整體計時
functionB();
BM_END(0)
}
void functionB(void){
BM_START(1) // 嵌套計時,模塊1
Block1();
BM_END(1)
BM_START(2) // 嵌套計時,模塊2
Block2();
BM_END(2)
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -