Go to the documentation of this file.
35 return double(LargeInt.tv_sec) + double(LargeInt.tv_nsec) / 1e9;
41 if (! ( TimeS < 4e9 && TimeS > 0.0 ))
44 DeltaTime.tv_nsec = 0;
48 DeltaTime.tv_sec = ::time_t(TimeS);
50 =
static_cast<long int>((TimeS - double(DeltaTime.tv_sec)) * 1e9);
62 if (Res.tv_nsec < 0) {
64 Res.tv_nsec += 1000000000;
124 # define TIME_SIZE 400
133 tm = localtime ( &now );
134 len = strftime ( pres,
TIME_SIZE,
"%Y-%m-%d %H:%M:%S.", tm );
144 # define TIME_SIZE 4000
153 len = strftime ( pres,
TIME_SIZE,
"%Y-%m-%d %H:%M:%S.", tm );
void getTimeStamp(long &lSeconds, long &lNanoSeconds)
static double TimespecToDouble(const ::timespec &LargeInt)
Conversion timespec -> double.
std::string CurrentToString()
void setTimeStamp(const long &lSeconds, const long &lNanoSeconds)
timespec m_TimeStamp
Internal time stamp data.
double operator-(const TimeStamp &EarlierTime) const
Retrieves time difference in seconds.
void operator-=(double TimeS)
Reduces the timestamp by TimeS seconds.
void SetNow()
Makes time measurement.
std::string NumToString(const int n)
bool operator>(const TimeStamp &Time)
Checks if this time is after time "Time".
void operator+=(double TimeS)
Increase the timestamp by TimeS seconds.
::timespec DoubleToTimespec(double TimeS)
Conversion double -> timespec.
bool operator<(const TimeStamp &Time)
Checks if this time is before time "Time".
cob_utilities
Author(s): Christian Connette
autogenerated on Wed Nov 8 2023 03:47:50