Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
benchmark::internal::ThreadTimer Class Reference

#include <thread_timer.h>

Public Member Functions

double cpu_time_used ()
 
double cpu_time_used ()
 
double cpu_time_used () const
 
double manual_time_used ()
 
double manual_time_used ()
 
double manual_time_used () const
 
double real_time_used ()
 
double real_time_used ()
 
double real_time_used () const
 
bool running () const
 
bool running () const
 
bool running () const
 
void SetIterationTime (double seconds)
 
void SetIterationTime (double seconds)
 
void SetIterationTime (double seconds)
 
void StartTimer ()
 
void StartTimer ()
 
void StartTimer ()
 
void StopTimer ()
 
void StopTimer ()
 
void StopTimer ()
 
 ThreadTimer ()=default
 
 ThreadTimer ()=default
 

Static Public Member Functions

static ThreadTimer Create ()
 
static ThreadTimer CreateProcessCpuTime ()
 

Private Member Functions

double ReadCpuTimerOfChoice () const
 
 ThreadTimer (bool measure_process_cpu_time_)
 

Private Attributes

double cpu_time_used_ = 0
 
double manual_time_used_ = 0
 
const bool measure_process_cpu_time
 
double real_time_used_ = 0
 
bool running_ = false
 
double start_cpu_time_ = 0
 
double start_real_time_ = 0
 

Detailed Description

Definition at line 10 of file thread_timer.h.

Constructor & Destructor Documentation

◆ ThreadTimer() [1/3]

benchmark::internal::ThreadTimer::ThreadTimer ( bool  measure_process_cpu_time_)
inlineexplicitprivate

Definition at line 11 of file thread_timer.h.

◆ ThreadTimer() [2/3]

benchmark::internal::ThreadTimer::ThreadTimer ( )
default

◆ ThreadTimer() [3/3]

benchmark::internal::ThreadTimer::ThreadTimer ( )
default

Member Function Documentation

◆ cpu_time_used() [1/3]

double benchmark::internal::ThreadTimer::cpu_time_used ( )
inline

◆ cpu_time_used() [2/3]

double benchmark::internal::ThreadTimer::cpu_time_used ( )
inline

◆ cpu_time_used() [3/3]

double benchmark::internal::ThreadTimer::cpu_time_used ( ) const
inline

Definition at line 52 of file thread_timer.h.

◆ Create()

static ThreadTimer benchmark::internal::ThreadTimer::Create ( )
inlinestatic

Definition at line 15 of file thread_timer.h.

◆ CreateProcessCpuTime()

static ThreadTimer benchmark::internal::ThreadTimer::CreateProcessCpuTime ( )
inlinestatic

Definition at line 18 of file thread_timer.h.

◆ manual_time_used() [1/3]

double benchmark::internal::ThreadTimer::manual_time_used ( )
inline

◆ manual_time_used() [2/3]

double benchmark::internal::ThreadTimer::manual_time_used ( )
inline

◆ manual_time_used() [3/3]

double benchmark::internal::ThreadTimer::manual_time_used ( ) const
inline

Definition at line 58 of file thread_timer.h.

◆ ReadCpuTimerOfChoice()

double benchmark::internal::ThreadTimer::ReadCpuTimerOfChoice ( ) const
inlineprivate

Definition at line 64 of file thread_timer.h.

◆ real_time_used() [1/3]

double benchmark::internal::ThreadTimer::real_time_used ( )
inline

◆ real_time_used() [2/3]

double benchmark::internal::ThreadTimer::real_time_used ( )
inline

◆ real_time_used() [3/3]

double benchmark::internal::ThreadTimer::real_time_used ( ) const
inline

Definition at line 46 of file thread_timer.h.

◆ running() [1/3]

bool benchmark::internal::ThreadTimer::running ( ) const
inline

Definition at line 43 of file thread_timer.h.

◆ running() [2/3]

bool benchmark::internal::ThreadTimer::running ( ) const
inline

◆ running() [3/3]

bool benchmark::internal::ThreadTimer::running ( ) const
inline

◆ SetIterationTime() [1/3]

void benchmark::internal::ThreadTimer::SetIterationTime ( double  seconds)
inline

Definition at line 41 of file thread_timer.h.

◆ SetIterationTime() [2/3]

void benchmark::internal::ThreadTimer::SetIterationTime ( double  seconds)
inline

◆ SetIterationTime() [3/3]

void benchmark::internal::ThreadTimer::SetIterationTime ( double  seconds)
inline

◆ StartTimer() [1/3]

void benchmark::internal::ThreadTimer::StartTimer ( )
inline

Definition at line 23 of file thread_timer.h.

◆ StartTimer() [2/3]

void benchmark::internal::ThreadTimer::StartTimer ( )
inline

◆ StartTimer() [3/3]

void benchmark::internal::ThreadTimer::StartTimer ( )
inline

◆ StopTimer() [1/3]

void benchmark::internal::ThreadTimer::StopTimer ( )
inline

Definition at line 30 of file thread_timer.h.

◆ StopTimer() [2/3]

void benchmark::internal::ThreadTimer::StopTimer ( )
inline

◆ StopTimer() [3/3]

void benchmark::internal::ThreadTimer::StopTimer ( )
inline

Member Data Documentation

◆ cpu_time_used_

double benchmark::internal::ThreadTimer::cpu_time_used_ = 0
private

Definition at line 78 of file thread_timer.h.

◆ manual_time_used_

double benchmark::internal::ThreadTimer::manual_time_used_ = 0
private

Definition at line 80 of file thread_timer.h.

◆ measure_process_cpu_time

const bool benchmark::internal::ThreadTimer::measure_process_cpu_time
private

Definition at line 70 of file thread_timer.h.

◆ real_time_used_

double benchmark::internal::ThreadTimer::real_time_used_ = 0
private

Definition at line 77 of file thread_timer.h.

◆ running_

bool benchmark::internal::ThreadTimer::running_ = false
private

Definition at line 72 of file thread_timer.h.

◆ start_cpu_time_

double benchmark::internal::ThreadTimer::start_cpu_time_ = 0
private

Definition at line 74 of file thread_timer.h.

◆ start_real_time_

double benchmark::internal::ThreadTimer::start_real_time_ = 0
private

Definition at line 73 of file thread_timer.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:58