KSeExpr  4.0.4.0
Public Member Functions | Private Types | Private Attributes | List of all members
KSeExpr::Timer Class Reference

#include <Timer.h>

Public Member Functions

 Timer ()=default
 
void start ()
 
void stop ()
 
std::chrono::steady_clock::rep elapsedTime ()
 

Private Types

using Time = std::time_t
 

Private Attributes

std::chrono::steady_clock::time_point startTime
 
std::chrono::steady_clock::time_point stopTime
 
bool started {false}
 

Detailed Description

Definition at line 9 of file Timer.h.

Member Typedef Documentation

◆ Time

using KSeExpr::Timer::Time = std::time_t
private

Definition at line 11 of file Timer.h.

Constructor & Destructor Documentation

◆ Timer()

KSeExpr::Timer::Timer ( )
default

Member Function Documentation

◆ elapsedTime()

std::chrono::steady_clock::rep KSeExpr::Timer::elapsedTime ( )
inline

Definition at line 26 of file Timer.h.

References start(), started, startTime, and stopTime.

Referenced by KSeExpr::PerformanceTimer::~PerformanceTimer().

◆ start()

void KSeExpr::Timer::start ( )
inline

Definition at line 15 of file Timer.h.

References started, and startTime.

Referenced by elapsedTime(), and KSeExpr::PerformanceTimer::PerformanceTimer().

◆ stop()

void KSeExpr::Timer::stop ( )
inline

Definition at line 21 of file Timer.h.

References started.

Member Data Documentation

◆ started

bool KSeExpr::Timer::started {false}
private

Definition at line 35 of file Timer.h.

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

◆ startTime

std::chrono::steady_clock::time_point KSeExpr::Timer::startTime
private

Definition at line 34 of file Timer.h.

Referenced by elapsedTime(), and start().

◆ stopTime

std::chrono::steady_clock::time_point KSeExpr::Timer::stopTime
private

Definition at line 34 of file Timer.h.

Referenced by elapsedTime().


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