Ion
|
This class aids in creation of a benchmarked SampledVariable. More...
#include "benchmark.h"
Public Member Functions | |
VariableSampler (const Descriptor &descriptor) | |
void | AddSample (double value) |
Adds one sample of the SampledVariable's value. More... | |
const SampledVariable | Get () |
Returns the resulting SampledVariable. More... | |
This class aids in creation of a benchmarked SampledVariable.
Definition at line 103 of file benchmark.h.
|
inlineexplicit |
Definition at line 105 of file benchmark.h.
void ion::analytics::Benchmark::VariableSampler::AddSample | ( | double | value | ) |
Adds one sample of the SampledVariable's value.
Benchmark::VariableSampler functions.
Definition at line 37 of file benchmark.cc.
References ion::port::Timer::Get(), ion::port::Timer::Reset(), ion::analytics::Benchmark::SampledVariable::samples, and value.
|
inline |
Returns the resulting SampledVariable.
Definition at line 112 of file benchmark.h.