|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
RAII scope for measuring a block of code. Usage: volatile uint32_t elapsed; { TickScope s(elapsed); /* code */ }
#include <ticks.hpp>
Public Member Functions | |
| TickScope (volatile uint32_t &out) | |
| ~TickScope () | |
Public Attributes | |
| uint32_t | start_ |
| volatile uint32_t & | result_ |
|
inlineexplicit |
|
inline |
Definition at line 42 of file ticks.hpp.
References result_, start_, and sbl::diagnostics::ticks().
| uint32_t sbl::diagnostics::TickScope::start_ |
Definition at line 37 of file ticks.hpp.
Referenced by ~TickScope().
| volatile uint32_t& sbl::diagnostics::TickScope::result_ |
Definition at line 38 of file ticks.hpp.
Referenced by ~TickScope().