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::getrusage_timer Class Reference

Counter that uses getrusage() in POSIX systems. 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() as an rusage object.
 

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 const & normalize (raw_value_type const &v) noexcept
 Normalizes the given raw value.
 

Public Types

typedef struct rusage raw_value_type
 
typedef struct rusage value_type
 

Detailed Description

Counter that uses getrusage() in POSIX systems.


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