Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::system::profiling::CycleScope Struct Reference

Detailed Description

RAII scope that measures a block of code in cycles. Usage: volatile uint32_t elapsed; { CycleScope s(elapsed); ... }

Definition at line 48 of file cycles.hpp.

#include <cycles.hpp>

Public Member Functions

 CycleScope (volatile uint32_t &out)
 

Public Attributes

uint32_t start_
 
volatile uint32_t & result_
 

Constructor & Destructor Documentation

◆ CycleScope()

sbl::system::profiling::CycleScope::CycleScope ( volatile uint32_t &  out)
inlineexplicit

Definition at line 52 of file cycles.hpp.

◆ ~CycleScope()

sbl::system::profiling::CycleScope::~CycleScope ( )
inline

Definition at line 53 of file cycles.hpp.

Member Data Documentation

◆ start_

uint32_t sbl::system::profiling::CycleScope::start_

Definition at line 49 of file cycles.hpp.

◆ result_

volatile uint32_t& sbl::system::profiling::CycleScope::result_

Definition at line 50 of file cycles.hpp.


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