Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Timer Class Reference

Public Member Functions

 Timer ()
 
double elapsed_ms () const
 
 Timer ()
 
double elapsed_ms () const
 
void start ()
 
void stop ()
 
double elapsed_ms () const
 
 Timer ()
 
double elapsed_ms () const
 

Private Attributes

chrono::high_resolution_clock::time_point start
 
high_resolution_clock::time_point start_time
 
high_resolution_clock::time_point stop_time
 
bool stopped = false
 

Detailed Description

Definition at line 135 of file disjoint_sparse_table_test.cc.

Constructor & Destructor Documentation

◆ Timer() [1/3]

Timer::Timer ( )
inline

Definition at line 139 of file disjoint_sparse_table_test.cc.

◆ Timer() [2/3]

Timer::Timer ( )
inline

Definition at line 87 of file min_cut_test.cc.

◆ Timer() [3/3]

Timer::Timer ( )
inline

Definition at line 134 of file sparse_table_test.cc.

Member Function Documentation

◆ elapsed_ms() [1/4]

◆ elapsed_ms() [2/4]

double Timer::elapsed_ms ( ) const
inline

Definition at line 88 of file min_cut_test.cc.

References start.

◆ elapsed_ms() [3/4]

double Timer::elapsed_ms ( ) const
inline

Definition at line 239 of file sort_benchmark.C.

References start_time, stop_time, and stopped.

◆ elapsed_ms() [4/4]

double Timer::elapsed_ms ( ) const
inline

Definition at line 135 of file sparse_table_test.cc.

References start.

◆ start()

void Timer::start ( )
inline

Definition at line 225 of file sort_benchmark.C.

References start_time, and stopped.

◆ stop()

void Timer::stop ( )
inline

Member Data Documentation

◆ start

chrono::high_resolution_clock::time_point Timer::start
private

◆ start_time

high_resolution_clock::time_point Timer::start_time
private

Definition at line 220 of file sort_benchmark.C.

Referenced by elapsed_ms(), and start().

◆ stop_time

high_resolution_clock::time_point Timer::stop_time
private

Definition at line 221 of file sort_benchmark.C.

Referenced by elapsed_ms(), and stop().

◆ stopped

bool Timer::stopped = false
private

Definition at line 222 of file sort_benchmark.C.

Referenced by elapsed_ms(), start(), and stop().


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