Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
RandomVariableStats Struct Reference

#include <qle/math/randomvariable.hpp>

+ Inheritance diagram for RandomVariableStats:
+ Collaboration diagram for RandomVariableStats:

Public Member Functions

 RandomVariableStats ()
 
void reset ()
 

Public Attributes

bool enabled = false
 
std::size_t data_ops = 0
 
std::size_t calc_ops = 0
 
boost::timer::cpu_timer data_timer
 
boost::timer::cpu_timer calc_timer
 

Detailed Description

Definition at line 41 of file randomvariable.hpp.

Constructor & Destructor Documentation

◆ RandomVariableStats()

Definition at line 42 of file randomvariable.hpp.

42 {
43 data_timer.start();
44 data_timer.stop();
45 calc_timer.start();
46 calc_timer.stop();
47 }
boost::timer::cpu_timer calc_timer
boost::timer::cpu_timer data_timer

Member Function Documentation

◆ reset()

void reset ( )

Definition at line 49 of file randomvariable.hpp.

49 {
50 enabled = false;
51 data_ops = 0;
52 calc_ops = 0;
53 data_timer.stop();
54 calc_timer.stop();
55 }

Member Data Documentation

◆ enabled

bool enabled = false

Definition at line 57 of file randomvariable.hpp.

◆ data_ops

std::size_t data_ops = 0

Definition at line 58 of file randomvariable.hpp.

◆ calc_ops

std::size_t calc_ops = 0

Definition at line 59 of file randomvariable.hpp.

◆ data_timer

boost::timer::cpu_timer data_timer

Definition at line 60 of file randomvariable.hpp.

◆ calc_timer

boost::timer::cpu_timer calc_timer

Definition at line 61 of file randomvariable.hpp.