Rcpp Version 0.12.12
Rcpp::Timer Class Reference

#include <Timer.h>

Public Member Functions

 Timer ()
 
 Timer (nanotime_t start_time_)
 
void step (const std::string &name)
 
 operator SEXP () const
 
nanotime_t now () const
 
nanotime_t origin () const
 

Static Public Member Functions

static std::vector< Timerget_timers (int n)
 

Private Types

typedef std::pair< std::string, nanotime_tStep
 
typedef std::vector< StepSteps
 

Private Attributes

Steps data
 
const nanotime_t start_time
 

Detailed Description

Definition at line 103 of file Timer.h.

Member Typedef Documentation

typedef std::pair<std::string,nanotime_t> Rcpp::Timer::Step
private

Definition at line 137 of file Timer.h.

typedef std::vector<Step> Rcpp::Timer::Steps
private

Definition at line 138 of file Timer.h.

Constructor & Destructor Documentation

Rcpp::Timer::Timer ( )
inline

Definition at line 105 of file Timer.h.

Referenced by get_timers().

Rcpp::Timer::Timer ( nanotime_t  start_time_)
inline

Definition at line 106 of file Timer.h.

Member Function Documentation

static std::vector<Timer> Rcpp::Timer::get_timers ( int  n)
inlinestatic

Definition at line 124 of file Timer.h.

References Timer().

Here is the call graph for this function:

nanotime_t Rcpp::Timer::now ( ) const
inline

Definition at line 128 of file Timer.h.

Referenced by step().

Rcpp::Timer::operator SEXP ( ) const
inline

Definition at line 112 of file Timer.h.

References Rcpp::AttributeProxyPolicy< CLASS >::attr(), data, and start_time.

Here is the call graph for this function:

nanotime_t Rcpp::Timer::origin ( ) const
inline

Definition at line 132 of file Timer.h.

References start_time.

void Rcpp::Timer::step ( const std::string &  name)
inline

Definition at line 108 of file Timer.h.

References data, and now().

Here is the call graph for this function:

Member Data Documentation

Steps Rcpp::Timer::data
private

Definition at line 140 of file Timer.h.

Referenced by operator SEXP(), and step().

const nanotime_t Rcpp::Timer::start_time
private

Definition at line 141 of file Timer.h.

Referenced by operator SEXP(), and origin().


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