Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
XTime Class Reference

Public Member Functions

 XTime (long sec, long usec) noexcept
 
double operator- (const XTime &x) const noexcept
 
long diff_usec (const XTime &x) const noexcept
 
long diff_msec (const XTime &x) const noexcept
 
long diff_sec (const XTime &x) const noexcept
 
XTimeoperator+= (double sec_d) noexcept
 
XTimeoperator-= (double sec) noexcept
 
bool operator== (const XTime &x) const noexcept
 
bool operator!= (const XTime &x) const noexcept
 
bool operator< (const XTime &x) const noexcept
 
bool operator<= (const XTime &x) const noexcept
 
bool operator> (const XTime &x) const noexcept
 
bool operator>= (const XTime &x) const noexcept
 
bool operator! () const noexcept
 
 operator bool () const noexcept
 
long sec () const noexcept
 
long usec () const noexcept
 
XString getTimeStr (bool subsecond=true) const
 
XString getTimeFmtStr (const char *fmt, bool subsecond=true) const __attribute__((format(strftime
 

Static Public Member Functions

static XTime now () noexcept
 

Private Attributes

long tv_sec
 
long tv_usec
 

Detailed Description

Definition at line 34 of file xtime.h.


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

Generated for KAME4 by  doxygen 1.8.3