Bitcoin Core  0.20.99
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
benchmark::State Class Reference

#include <bench.h>

Public Member Functions

bool UpdateTimer (time_point finish_time)
 State (std::string name, uint64_t num_evals, double num_iters, Printer &printer)
bool KeepRunning ()

Public Attributes

std::string m_name
uint64_t m_num_iters_left
const uint64_t m_num_iters
const uint64_t m_num_evals
std::vector< double > m_elapsed_results
time_point m_start_time

Detailed Description

Definition at line 53 of file bench.h.

Constructor & Destructor Documentation

◆ State()

benchmark::State::State ( std::string  name,
uint64_t  num_evals,
double  num_iters,
Printer printer 

Definition at line 65 of file bench.h.

Member Function Documentation

◆ KeepRunning()

bool benchmark::State::KeepRunning ( )

Definition at line 69 of file bench.h.

◆ UpdateTimer()

bool benchmark::State::UpdateTimer ( const benchmark::time_point  current_time)

Definition at line 135 of file bench.cpp.

Member Data Documentation

◆ m_elapsed_results

std::vector<double> benchmark::State::m_elapsed_results

Definition at line 60 of file bench.h.

◆ m_name

std::string benchmark::State::m_name

Definition at line 56 of file bench.h.

◆ m_num_evals

const uint64_t benchmark::State::m_num_evals

Definition at line 59 of file bench.h.

◆ m_num_iters

const uint64_t benchmark::State::m_num_iters

Definition at line 58 of file bench.h.

◆ m_num_iters_left

uint64_t benchmark::State::m_num_iters_left

Definition at line 57 of file bench.h.

◆ m_start_time

time_point benchmark::State::m_start_time

Definition at line 61 of file bench.h.

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