OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
 
Loading...
Searching...
No Matches
Utils::StopWatch Class Reference

#include <StopWatch.h>

Public Member Functions

 StopWatch (bool start)
 
void start ()
 
void stop ()
 
std::chrono::system_clock::duration getElapsedDuration () const
 
long long getElapsedMilliseconds () const
 
double getElapsedSeconds () const
 
std::string getElapsedSecondsString (const std::string &suffix="") const
 

Static Public Attributes

static constexpr const double MS_PER_SECOND = 1000.0
 

Detailed Description

Definition at line 9 of file StopWatch.h.

Constructor & Destructor Documentation

◆ StopWatch()

Utils::StopWatch::StopWatch ( bool  start)

Definition at line 9 of file StopWatch.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ getElapsedDuration()

system_clock::duration Utils::StopWatch::getElapsedDuration ( ) const

Definition at line 47 of file StopWatch.cpp.

Here is the caller graph for this function:

◆ getElapsedMilliseconds()

long long Utils::StopWatch::getElapsedMilliseconds ( ) const

Definition at line 30 of file StopWatch.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getElapsedSeconds()

double Utils::StopWatch::getElapsedSeconds ( ) const

Definition at line 35 of file StopWatch.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getElapsedSecondsString()

std::string Utils::StopWatch::getElapsedSecondsString ( const std::string &  suffix = "") const

Definition at line 40 of file StopWatch.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start()

void Utils::StopWatch::start ( )

Definition at line 18 of file StopWatch.cpp.

Here is the caller graph for this function:

◆ stop()

void Utils::StopWatch::stop ( )

Definition at line 24 of file StopWatch.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ MS_PER_SECOND

constexpr const double Utils::StopWatch::MS_PER_SECOND = 1000.0
inlinestaticconstexpr

Definition at line 27 of file StopWatch.h.


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