Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
UA_CoMP::Timekeeper::TimeStamp Class Reference

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

#include <TimeStamp.h>

Collaboration diagram for UA_CoMP::Timekeeper::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::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 31 of file TimeStamp.h.

Constructor & Destructor Documentation

UA_CoMP::Timekeeper::TimeStamp::TimeStamp ( )
inline

Constructor marks the time for the time stamp.

Definition at line 35 of file TimeStamp.h.

Member Function Documentation

std::string UA_CoMP::Timekeeper::TimeStamp::ToString ( ) const
inline

Returns string with the time stamp after eliminating newline.

Definition at line 38 of file TimeStamp.h.

References m_tp.

Referenced by UA_CoMP::Timekeeper::operator<<().

Here is the caller graph for this function:

std::time_t UA_CoMP::Timekeeper::TimeStamp::ToTimeT ( ) const
inline

Returns time stamp as a time_t.

Definition at line 47 of file TimeStamp.h.

References m_tp.

Member Data Documentation

std::chrono::system_clock::time_point UA_CoMP::Timekeeper::TimeStamp::m_tp
private

Definition at line 50 of file TimeStamp.h.

Referenced by ToString(), and ToTimeT().


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