tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
detail::CycleCounterGeneric Struct Reference

Stub cycle counter for platforms without hardware timer access. More...

#include <cycle_counter_generic.h>

Public Member Functions

FORCE_INLINE void start () noexcept
 
FORCE_INLINE void stop () noexcept
 
void reset () noexcept
 
double avg_cycles () const
 

Public Attributes

unsigned long long total_cycles = 0
 
unsigned long long runs = 0
 

Detailed Description

Stub cycle counter for platforms without hardware timer access.

All timing methods are no-ops. avg_cycles() always returns 0. Exists so that benchmarking code compiles unconditionally.

Member Function Documentation

◆ avg_cycles()

double detail::CycleCounterGeneric::avg_cycles ( ) const
inline

◆ reset()

void detail::CycleCounterGeneric::reset ( )
inlinenoexcept

◆ start()

FORCE_INLINE void detail::CycleCounterGeneric::start ( )
inlinenoexcept

◆ stop()

FORCE_INLINE void detail::CycleCounterGeneric::stop ( )
inlinenoexcept

Member Data Documentation

◆ runs

unsigned long long detail::CycleCounterGeneric::runs = 0

◆ total_cycles

unsigned long long detail::CycleCounterGeneric::total_cycles = 0

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