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

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 167 of file benchmark.cc.

Constructor & Destructor Documentation

◆ ThreadTimer()

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

Member Function Documentation

◆ cpu_time_used()

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

Definition at line 198 of file benchmark.cc.

◆ manual_time_used()

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

Definition at line 204 of file benchmark.cc.

◆ real_time_used()

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

Definition at line 192 of file benchmark.cc.

◆ running()

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

Definition at line 189 of file benchmark.cc.

◆ SetIterationTime()

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

Definition at line 187 of file benchmark.cc.

◆ StartTimer()

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

Definition at line 172 of file benchmark.cc.

◆ StopTimer()

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

Definition at line 179 of file benchmark.cc.

Member Data Documentation

◆ cpu_time_used_

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

Definition at line 216 of file benchmark.cc.

◆ manual_time_used_

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

Definition at line 218 of file benchmark.cc.

◆ real_time_used_

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

Definition at line 215 of file benchmark.cc.

◆ running_

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

Definition at line 210 of file benchmark.cc.

◆ start_cpu_time_

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

Definition at line 212 of file benchmark.cc.

◆ start_real_time_

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

Definition at line 211 of file benchmark.cc.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:06