API

A fixed-width timespec structure and utilities. More...

#include <cstdint>
#include <iostream>
#include <cmath>
#include <ctime>
#include "logDefs.hpp"
Include dependency graph for timespecX.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  flatlogs::timespecX
 A fixed-width timespec structure. More...
 

Namespaces

 flatlogs
 

Functions

bool flatlogs::operator< (timespecX const &tsL, timespecX const &tsR)
 TimespecX comparison operator < (see caveats) More...
 
bool flatlogs::operator> (timespecX const &tsL, timespecX const &tsR)
 TimespecX comparison operator > (see caveats) More...
 
bool flatlogs::operator== (timespecX const &tsL, timespecX const &tsR)
 TimespecX comparison operator == (see caveats) More...
 
bool flatlogs::operator<= (timespecX const &tsL, timespecX const &tsR)
 TimespecX comparison operator <= (see caveats) More...
 
bool flatlogs::operator>= (timespecX const &tsL, timespecX const &tsR)
 TimespecX comparison operator >= (see caveats) More...
 
timespecX flatlogs::meanTimespecX (timespecX ts1, timespecX ts2)
 
void flatlogs::timespecFromX (timespec &ts, const timespecX &tsX)
 Convert a timespecX to a native timespec. More...
 
template<clockid_t clk_id = CLOCK_REALTIME>
void flatlogs::clock_gettimeX (timespecX &tsX)
 Fill in a timespecX with the current time. More...
 

Detailed Description

A fixed-width timespec structure and utilities.

Author
Jared R. Males (jared.nosp@m.male.nosp@m.s@gma.nosp@m.il.c.nosp@m.om)

History:

  • 2017-06-27 created by JRM
  • 2018-08-17 moved to flatlogs

Definition in file timespecX.hpp.