|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
#include <dwt.hpp>
Public Member Functions | |
| CycleScope (volatile uint32_t &out) | |
| ~CycleScope () | |
Public Attributes | |
| uint32_t | start_ |
| volatile uint32_t & | result_ |
RAII scope for measuring a block of code. Usage: volatile uint32_t elapsed; { CycleScope s(elapsed); /* code */ }
|
inlineexplicit |
|
inline |
Definition at line 59 of file dwt.hpp.
References sbl::profiling::cycles(), result_, and start_.
| volatile uint32_t& sbl::profiling::CycleScope::result_ |
Definition at line 55 of file dwt.hpp.
Referenced by ~CycleScope().
| uint32_t sbl::profiling::CycleScope::start_ |
Definition at line 54 of file dwt.hpp.
Referenced by ~CycleScope().