FCT
载入中...
搜索中...
未找到
FCT::ScopeTimer类 参考

#include <ScopeTimer.h>

FCT::ScopeTimer 的协作图:
Collaboration graph

Public 成员函数

 ScopeTimer (const std::string &timerName)
 ~ScopeTimer ()
void stop ()

静态 Public 成员函数

static double getTime (const std::string &timerName)
static void printAll (std::ostream &out=fout)

Private 属性

std::string name
std::chrono::high_resolution_clock::time_point startTime
bool stopped

静态 Private 属性

static std::map< std::string, double > timings

详细描述

在文件 ScopeTimer.h11 行定义.

构造及析构函数说明

◆ ScopeTimer()

FCT::ScopeTimer::ScopeTimer ( const std::string & timerName)
inline

在文件 ScopeTimer.h18 行定义.

◆ ~ScopeTimer()

FCT::ScopeTimer::~ScopeTimer ( )
inline

在文件 ScopeTimer.h23 行定义.

函数调用图:

成员函数说明

◆ getTime()

double FCT::ScopeTimer::getTime ( const std::string & timerName)
inlinestatic

在文件 ScopeTimer.h37 行定义.

◆ printAll()

void FCT::ScopeTimer::printAll ( std::ostream & out = fout)
inlinestatic

在文件 ScopeTimer.h44 行定义.

◆ stop()

void FCT::ScopeTimer::stop ( )
inline

在文件 ScopeTimer.h29 行定义.

这是这个函数的调用关系图:

类成员变量说明

◆ name

std::string FCT::ScopeTimer::name
private

在文件 ScopeTimer.h13 行定义.

◆ startTime

std::chrono::high_resolution_clock::time_point FCT::ScopeTimer::startTime
private

在文件 ScopeTimer.h14 行定义.

◆ stopped

bool FCT::ScopeTimer::stopped
private

在文件 ScopeTimer.h15 行定义.

◆ timings

std::map< std::string, double > FCT::ScopeTimer::timings
staticprivate

在文件 ScopeTimer.h16 行定义.


该类的文档由以下文件生成: