|
RDFS
The Rice Comp413 2017 class' continuation on the work of the 2016 RDFS.
|
Contains utilities for cross-platform date/time. This class make use of el::base::utils::Str. More...
#include <easylogging++.h>
Static Public Member Functions | |
| static void | gettimeofday (struct timeval *tv) |
| Cross platform gettimeofday for Windows and unix platform. This can be used to determine current microsecond. More... | |
| static std::string | getDateTime (const char *format, const base::SubsecondPrecision *ssPrec) |
| Gets current date and time with a subsecond part. More... | |
| static std::string | timevalToString (struct timeval tval, const char *format, const el::base::SubsecondPrecision *ssPrec) |
| Converts timeval (struct from ctime) to string using specified format and subsecond precision. | |
| static base::type::string_t | formatTime (unsigned long long time, base::TimestampUnit timestampUnit) |
| Formats time to get unit accordingly, units like second if > 1000 or minutes if > 60000 etc. | |
| static unsigned long long | getTimeDifference (const struct timeval &endTime, const struct timeval &startTime, base::TimestampUnit timestampUnit) |
| Gets time difference in milli/micro second depending on timestampUnit. | |
Contains utilities for cross-platform date/time. This class make use of el::base::utils::Str.
|
static |
Gets current date and time with a subsecond part.
| format | User provided date/time format |
| ssPrec | A pointer to base::SubsecondPrecision from configuration (non-null) |
|
static |
Cross platform gettimeofday for Windows and unix platform. This can be used to determine current microsecond.
For unix system it uses gettimeofday(timeval*, timezone*) and for Windows, a seperate implementation is provided
| [in,out] | tv | Pointer that gets updated |
1.8.6