Stride Reference Manual  1.0
stride::util::TimeStamp Class Reference

Provides wall-clock time stamp using the time call. More...

#include <TimeStamp.h>

Collaboration diagram for stride::util::TimeStamp:
Collaboration graph

Public Member Functions

 TimeStamp ()
 Constructor marks the time for the time stamp. More...
 
std::string toString () const
 Returns string with the time stamp after eliminating newline. More...
 
std::string toTag () const
 Returns string with the time stamp after eliminating newline. More...
 
std::time_t toTimeT () const
 Returns time stamp as a time_t. More...
 

Private Attributes

std::chrono::system_clock::time_point m_tp
 

Detailed Description

Provides wall-clock time stamp using the time call.

The time is that of the constructor call.

Definition at line 36 of file TimeStamp.h.

Constructor & Destructor Documentation

stride::util::TimeStamp::TimeStamp ( )
inline

Constructor marks the time for the time stamp.

Definition at line 39 of file TimeStamp.h.

Member Function Documentation

std::string stride::util::TimeStamp::toString ( ) const
inline

Returns string with the time stamp after eliminating newline.

Definition at line 42 of file TimeStamp.h.

References m_tp.

Referenced by stride::util::operator<<().

std::string stride::util::TimeStamp::toTag ( ) const
inline

Returns string with the time stamp after eliminating newline.

Definition at line 50 of file TimeStamp.h.

std::time_t stride::util::TimeStamp::toTimeT ( ) const
inline

Returns time stamp as a time_t.

Definition at line 63 of file TimeStamp.h.

References m_tp.

Member Data Documentation

std::chrono::system_clock::time_point stride::util::TimeStamp::m_tp
private

Definition at line 68 of file TimeStamp.h.

Referenced by toString(), and toTimeT().


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