PhoenixClockMock  2.0.0
Tool to manipulate mock of clock (split, merge and get info)
PClockNsBackend Class Reference

clock backend for clock More...

#include <PClockNsBackend.h>

+ Collaboration diagram for PClockNsBackend:

Public Member Functions

time_t now ()
 Get current time with PClockNsBackend. More...
 
 PClockNsBackend ()
 Constructor of the PClockNsBackend. More...
 
virtual ~PClockNsBackend ()
 Desstructor of the PClockNsBackend. More...
 

Private Attributes

PClockNs p_clock
 Clock at nano second precision to be used. More...
 

Detailed Description

clock backend for clock

Definition at line 13 of file PClockNsBackend.h.

Constructor & Destructor Documentation

◆ PClockNsBackend()

PClockNsBackend::PClockNsBackend ( )

Constructor of the PClockNsBackend.

Definition at line 10 of file PClockNsBackend.cpp.

10  {
11 
12 }

◆ ~PClockNsBackend()

PClockNsBackend::~PClockNsBackend ( )
virtual

Desstructor of the PClockNsBackend.

Definition at line 15 of file PClockNsBackend.cpp.

15  {
16 
17 }

Member Function Documentation

◆ now()

time_t PClockNsBackend::now ( )

Get current time with PClockNsBackend.

Returns
current time given by clock

Definition at line 22 of file PClockNsBackend.cpp.

22  {
23  return p_clock.getFullTimeNs();
24 }
PClockNs p_clock
Clock at nano second precision to be used.
std::time_t getFullTimeNs() const
Get the full time in nanoseconds.
Definition: PClockNs.cpp:85

References PClockNs::getFullTimeNs(), and p_clock.

+ Here is the call graph for this function:

Member Data Documentation

◆ p_clock

PClockNs PClockNsBackend::p_clock
private

Clock at nano second precision to be used.

Definition at line 22 of file PClockNsBackend.h.

Referenced by now().


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