libutil++  1.9.3
 All Classes Functions Variables
Static Public Member Functions | List of all members
sella::util::Time Class Reference

Static Public Member Functions

static struct timeval htontv (const struct timeval &src) throw ()
 
static struct timeval ntohtv (const struct timeval &src) throw ()
 
static void cleartv (struct timeval &src) throw ()
 
static int comparetv (const struct timeval &a, const struct timeval &b) throw ()
 
static struct timeval & copytv (struct timeval &dst, const struct timeval &src) throw ()
 
static struct timeval & subtracttv (struct timeval &dst, const struct timeval &src) throw ()
 
static struct timeval & addtv (struct timeval &dst, const struct timeval &src) throw ()
 
static struct timespec htonts (const struct timespec &ts) throw ()
 
static struct timespec ntohts (const struct timespec &ts) throw ()
 
static void clearts (struct timespec &ts) throw ()
 
static int comparets (const struct timespec &a, const struct timespec &b) throw ()
 
static struct timespec & copyts (struct timespec &dst, const struct timespec &src) throw ()
 
static struct timespec & subtractts (struct timespec &dst, const struct timespec &src) throw ()
 
static struct timespec & addts (struct timespec &dst, const struct timespec &src) throw ()
 
static struct timespec clock_realtime () throw ()
 
static struct timespec clock_realtime_coarse () throw ()
 
static struct timespec clock_monotonic () throw ()
 
static struct timespec clock_monotonic_coarse () throw ()
 
static struct timespec clock_monotonic_raw () throw ()
 
static struct timespec clock_boottime () throw ()
 
static struct timespec clock_process_cputime_id () throw ()
 
static struct timespec clock_thread_cputime_id () throw ()
 
static uint64_t tstousec (const struct timespec &ts) throw ()
 
static uint64_t tstomsec (const struct timespec &ts) throw ()
 
static uint64_t tstosec (const struct timespec &ts) throw ()
 
static struct timespec sectots (uint64_t sec) throw ()
 
static struct timespec msectots (uint64_t msec) throw ()
 
static struct timespec usectots (uint64_t usec) throw ()
 
static std::string tmtostr (const struct tm &tm, const char *format="%a %Y-%m-%d %H:%M:%S %Z") throw ()
 
static std::string tstostr (const struct timespec &ts, const char *format="%a %Y-%m-%d %H:%M:%S %Z") throw ()
 
static std::string sectostr (uint64_t sec=0, const char *format="%a %Y-%m-%d %H:%M:%S %Z") throw ()
 
static std::string usectostr (uint64_t usec=0, const char *format="%a %Y-%m-%d %H:%M:%S %Z") throw ()
 
static std::string msectostr (uint64_t msec=0, const char *format="%a %Y-%m-%d %H:%M:%S %Z") throw ()
 
static struct timeval gettimeofday (struct timezone *tz=NULL) throw ()
 
static uint64_t gettimeofday_usec (struct timezone *tz=NULL) throw ()
 
static uint64_t gettimeofday_msec (struct timezone *tz=NULL) throw ()
 
static uint64_t gettimeofday_sec (struct timezone *tz=NULL) throw ()
 
static uint64_t tvtousec (const struct timeval &tv) throw ()
 
static uint64_t tvtomsec (const struct timeval &tv) throw ()
 
static uint64_t tvtosec (const struct timeval &tv) throw ()
 
static struct timeval chronototv (const std::chrono::system_clock::duration &duration) throw ()
 
static struct timeval chronototv (const std::chrono::system_clock::time_point &tp) throw ()
 
static struct timeval sectotv (uint64_t sec) throw ()
 
static struct timeval usectotv (uint64_t usec) throw ()
 
static struct timeval msectotv (uint64_t msec) throw ()
 
static struct timeval * add_usectotv (struct timeval &tv, const uint64_t usec) throw ()
 
static struct timeval * add_msectotv (struct timeval &tv, const uint64_t msec) throw ()
 
static struct timeval * add_sectotv (struct timeval &tv, const uint64_t sec) throw ()
 
static std::string getRFC1123Date (void) throw ()
 

Detailed Description

Definition at line 27 of file Time.h.


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