7 #ifndef PIVX_UTILTIME_H
8 #define PIVX_UTILTIME_H
#define T(expected, seed, data)
int64_t GetTimeMicros()
Returns the system time (not mockable)
int64_t GetTimeMillis()
Returns the system time (not mockable)
int64_t GetSystemTimeInSeconds()
Returns the system time (not mockable)
void UninterruptibleSleep(const std::chrono::microseconds &n)
int64_t GetTime()
DEPRECATED Use either GetSystemTimeInSeconds (not mockable) or GetTime<T> (mockable)
std::string FormatISO8601Date(int64_t nTime)
std::string DurationToDHMS(int64_t nDurationTime)
void SetMockTime(int64_t nMockTimeIn)
For testing.
std::string FormatISO8601Time(int64_t nTime)
int64_t GetMockTime()
For testing.
std::string FormatISO8601DateTimeForBackup(int64_t nTime)
void MilliSleep(int64_t n)
std::string FormatISO8601DateTime(int64_t nTime)
ISO 8601 formatting is preferred.