nndeploy C++ API  0.2.0
nndeploy C++ API
Classes | Namespaces | Macros | Functions
time_profiler.h File Reference
#include "nndeploy/base/common.h"
#include "nndeploy/base/glic_stl_include.h"
#include "nndeploy/base/macro.h"
#include "nndeploy/base/object.h"
Include dependency graph for time_profiler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nndeploy::base::AutoTime
 
class  nndeploy::base::TimeProfiler
 
class  nndeploy::base::Timer
 

Namespaces

 nndeploy
 
 nndeploy::base
 

Macros

#define NNDEPLOY_AUTO_TIME
 
#define NNDEPLOY_TIME_POINT_END(key)
 
#define NNDEPLOY_TIME_POINT_START(key)
 
#define NNDEPLOY_TIME_PROFILER_GET_AVERAGE_TIME(key)   -1.0f
 
#define NNDEPLOY_TIME_PROFILER_GET_COST_TIME(key)   -1.0f
 
#define NNDEPLOY_TIME_PROFILER_PRINT(title)
 
#define NNDEPLOY_TIME_PROFILER_PRINT_INDEX(title, index)
 
#define NNDEPLOY_TIME_PROFILER_PRINT_REMOVE_WARMUP(title, warmup_times)
 
#define NNDEPLOY_TIME_PROFILER_RESET()
 

Functions

void nndeploy::base::timePointEnd (const std::string &key)
 
void nndeploy::base::timePointStart (const std::string &key)
 
float nndeploy::base::timeProfilerGetAverageTime (const std::string &key)
 
float nndeploy::base::timeProfilerGetCostTime (const std::string &key)
 
void nndeploy::base::timeProfilerPrint (const std::string &title="")
 
void nndeploy::base::timeProfilerPrintIndex (const std::string &title, uint64_t index)
 
void nndeploy::base::timeProfilerPrintRemoveWarmup (const std::string &title, uint64_t warmup_times)
 
void nndeploy::base::timeProfilerReset ()
 

Macro Definition Documentation

◆ NNDEPLOY_AUTO_TIME

#define NNDEPLOY_AUTO_TIME

Definition at line 165 of file time_profiler.h.

◆ NNDEPLOY_TIME_POINT_END

#define NNDEPLOY_TIME_POINT_END (   key)

Definition at line 159 of file time_profiler.h.

◆ NNDEPLOY_TIME_POINT_START

#define NNDEPLOY_TIME_POINT_START (   key)

Definition at line 158 of file time_profiler.h.

◆ NNDEPLOY_TIME_PROFILER_GET_AVERAGE_TIME

#define NNDEPLOY_TIME_PROFILER_GET_AVERAGE_TIME (   key)    -1.0f

Definition at line 161 of file time_profiler.h.

◆ NNDEPLOY_TIME_PROFILER_GET_COST_TIME

#define NNDEPLOY_TIME_PROFILER_GET_COST_TIME (   key)    -1.0f

Definition at line 160 of file time_profiler.h.

◆ NNDEPLOY_TIME_PROFILER_PRINT

#define NNDEPLOY_TIME_PROFILER_PRINT (   title)

Definition at line 162 of file time_profiler.h.

◆ NNDEPLOY_TIME_PROFILER_PRINT_INDEX

#define NNDEPLOY_TIME_PROFILER_PRINT_INDEX (   title,
  index 
)

Definition at line 163 of file time_profiler.h.

◆ NNDEPLOY_TIME_PROFILER_PRINT_REMOVE_WARMUP

#define NNDEPLOY_TIME_PROFILER_PRINT_REMOVE_WARMUP (   title,
  warmup_times 
)

Definition at line 164 of file time_profiler.h.

◆ NNDEPLOY_TIME_PROFILER_RESET

#define NNDEPLOY_TIME_PROFILER_RESET ( )

Definition at line 157 of file time_profiler.h.