STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Static Public Member Functions | Public Types
stapl::papi_cycle_counter Class Reference

Processor cycle counter that uses PAPI. More...

Public Member Functions

void start (void) noexcept
 Starts the counter.
 
value_type stop (void) const noexcept
 Stops the counter and returns the difference from start() in cycles.
 

Static Public Member Functions

static constexpr const char * name (void) noexcept
 Returns the name of the counter as a C string.
 
static value_type read (void) noexcept
 Returns the raw value from the counter.
 
static constexpr value_type normalize (const raw_value_type v) noexcept
 Normalizes the given raw value to cycles.
 

Public Types

typedef long_long raw_value_type
 
typedef long_long value_type
 

Detailed Description

Processor cycle counter that uses PAPI.


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