spdlog
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Attributes | List of all members
spdlog::stopwatch Class Reference

Detailed Description

Definition at line 28 of file stopwatch.h.

#include <stopwatch.h>

Public Member Functions

 stopwatch ()
 
std::chrono::duration< double > elapsed () const
 
void reset ()
 

Private Types

using clock = std::chrono::steady_clock
 

Private Attributes

std::chrono::time_point< clockstart_tp_
 

Member Typedef Documentation

◆ clock

Definition at line 30 of file stopwatch.h.

Constructor & Destructor Documentation

◆ stopwatch()

spdlog::stopwatch::stopwatch ( )
inline

Definition at line 34 of file stopwatch.h.

Member Function Documentation

◆ elapsed()

std::chrono::duration< double > spdlog::stopwatch::elapsed ( ) const
inline

Definition at line 38 of file stopwatch.h.

◆ reset()

void spdlog::stopwatch::reset ( )
inline

Definition at line 43 of file stopwatch.h.

Member Data Documentation

◆ start_tp_

std::chrono::time_point<clock> spdlog::stopwatch::start_tp_
private

Definition at line 31 of file stopwatch.h.


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