20 typedef std::chrono::time_point<SteadyClock>
TimeNs;
49 std::string
phoenix_dateNs(std::time_t currentDateNs,
const char* format);
std::string phoenix_dateNs(std::time_t currentDateNs, const char *format)
Convert a given date in nanosecond into a text date.
std::string phoenix_dateCompactNs(std::time_t currentDateNs)
Convert a given date in nanosecond into a text date in a more compact way.
std::string getDateCompactNs() const
Get the date at nanosecond precision (even if it is not precise at the nanosecond scale,...
void initialisationPClockNs()
Initialisation function of the class PClockNs.
PClockNs & operator=(const PClockNs &other)
Definition of equal operator of PClockNs.
std::time_t getOffsetTimeNs() const
Get the offset in nanoseconds of the current clock.
std::time_t getFullTimeNs() const
Get the full time in nanoseconds.
virtual ~PClockNs()
Destructor of PClockNs.
void setOffsetTimeNs(std::time_t offsetTimeNs)
Set the offset in nanoseconds of the current clock.
std::string getDateNs() const
Get the date at nanosecond precision (even if it is not precise at the nanosecond scale,...
PClockNs()
Default constructor of PClockNs.
std::chrono::nanoseconds Nanosecond
std::chrono::steady_clock SteadyClock
std::chrono::time_point< SteadyClock > TimeNs
std::time_t p_baseSystemClockSecond
Base of the system clock in second.
void copyPClockNs(const PClockNs &other)
Copy function of PClockNs.
std::time_t p_offsetTimeNs
Offset of time with date and nanoseconds.
TimeNs p_baseSteadyClockNs
Base clock time with a nanosecond precision but since the starting of the CPU.