SG++-Doxygen-Documentation
sgpp::combigrid::Stopwatch Class Reference

Simple stopwatch implementation. More...

#include <Stopwatch.hpp>

Public Member Functions

double elapsedSeconds ()
 
void log ()
 Prints the result of elapsedSeconds() to the console. More...
 
void start ()
 Re-starts the stopwatch. More...
 
 Stopwatch ()
 Starts the stopwatch. More...
 

Detailed Description

Simple stopwatch implementation.

Constructor & Destructor Documentation

◆ Stopwatch()

sgpp::combigrid::Stopwatch::Stopwatch ( )

Starts the stopwatch.

Member Function Documentation

◆ elapsedSeconds()

double sgpp::combigrid::Stopwatch::elapsedSeconds ( )
Returns
the number of seconds that have passed since the last start.

Referenced by log().

◆ log()

void sgpp::combigrid::Stopwatch::log ( )

Prints the result of elapsedSeconds() to the console.

References elapsedSeconds().

◆ start()

void sgpp::combigrid::Stopwatch::start ( )

Re-starts the stopwatch.


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