nndeploy C++ API  0.2.0
nndeploy C++ API
Classes | Public Member Functions | List of all members
nndeploy::base::TimeProfiler Class Reference

#include <time_profiler.h>

Inheritance diagram for nndeploy::base::TimeProfiler:
[legend]
Collaboration diagram for nndeploy::base::TimeProfiler:
[legend]

Public Member Functions

void end (const std::string &key)
 
float getAverageTime (const std::string &key) const
 
float getCostTime (const std::string &key) const
 
void print (const std::string &title="")
 
void printIndex (const std::string &title, uint64_t index)
 
void printRemoveWarmup (const std::string &title, uint64_t warmup_times)
 
void reset ()
 
void start (const std::string &key)
 
 TimeProfiler ()
 
virtual ~TimeProfiler ()
 
- Public Member Functions inherited from nndeploy::base::NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
 NonCopyable (NonCopyable &&)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
NonCopyableoperator= (NonCopyable &&)=delete
 

Detailed Description

Definition at line 13 of file time_profiler.h.

Constructor & Destructor Documentation

◆ TimeProfiler()

nndeploy::base::TimeProfiler::TimeProfiler ( )

◆ ~TimeProfiler()

virtual nndeploy::base::TimeProfiler::~TimeProfiler ( )
virtual

Member Function Documentation

◆ end()

void nndeploy::base::TimeProfiler::end ( const std::string &  key)

◆ getAverageTime()

float nndeploy::base::TimeProfiler::getAverageTime ( const std::string &  key) const

◆ getCostTime()

float nndeploy::base::TimeProfiler::getCostTime ( const std::string &  key) const

◆ print()

void nndeploy::base::TimeProfiler::print ( const std::string &  title = "")

◆ printIndex()

void nndeploy::base::TimeProfiler::printIndex ( const std::string &  title,
uint64_t  index 
)

◆ printRemoveWarmup()

void nndeploy::base::TimeProfiler::printRemoveWarmup ( const std::string &  title,
uint64_t  warmup_times 
)

◆ reset()

void nndeploy::base::TimeProfiler::reset ( )

◆ start()

void nndeploy::base::TimeProfiler::start ( const std::string &  key)

The documentation for this class was generated from the following file: