CPPX 2.1.0
A Modern C++ Utility Library
Loading...
Searching...
No Matches
Benchmark Class Reference
Collaboration diagram for Benchmark:

Public Types

using Clock = std::chrono::steady_clock
 
using TimePoint = Clock::time_point
 
using Duration = std::chrono::duration< double, std::milli >
 

Public Member Functions

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

Detailed Description

Definition at line 20 of file benchmark_main.cpp.

Member Typedef Documentation

◆ Clock

using Benchmark::Clock = std::chrono::steady_clock

Definition at line 23 of file benchmark_main.cpp.

◆ Duration

using Benchmark::Duration = std::chrono::duration<double, std::milli>

Definition at line 25 of file benchmark_main.cpp.

◆ TimePoint

using Benchmark::TimePoint = Clock::time_point

Definition at line 24 of file benchmark_main.cpp.

Member Function Documentation

◆ elapsed_ms()

double Benchmark::elapsed_ms ( ) const
inline

Definition at line 38 of file benchmark_main.cpp.

◆ start()

void Benchmark::start ( )
inline

Definition at line 27 of file benchmark_main.cpp.

◆ stop()

void Benchmark::stop ( )
inline

Definition at line 32 of file benchmark_main.cpp.


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