Changeset View
Changeset View
Standalone View
Standalone View
src/utiltime.h
Show All 22 Lines | |||||
int64_t GetTimeMillis(); | int64_t GetTimeMillis(); | ||||
int64_t GetTimeMicros(); | int64_t GetTimeMicros(); | ||||
// Like GetTime(), but not mockable | // Like GetTime(), but not mockable | ||||
int64_t GetSystemTimeInSeconds(); | int64_t GetSystemTimeInSeconds(); | ||||
void SetMockTime(int64_t nMockTimeIn); | void SetMockTime(int64_t nMockTimeIn); | ||||
int64_t GetMockTime(); | int64_t GetMockTime(); | ||||
void MilliSleep(int64_t n); | void MilliSleep(int64_t n); | ||||
/** | |||||
* ISO 8601 formatting is preferred. Use the FormatISO8601{DateTime,Date,Time} | |||||
* helper functions if possible. | |||||
*/ | |||||
std::string DateTimeStrFormat(const char *pszFormat, int64_t nTime); | std::string DateTimeStrFormat(const char *pszFormat, int64_t nTime); | ||||
std::string FormatISO8601DateTime(int64_t nTime); | |||||
std::string FormatISO8601Date(int64_t nTime); | |||||
std::string FormatISO8601Time(int64_t nTime); | |||||
#endif // BITCOIN_UTILTIME_H | #endif // BITCOIN_UTILTIME_H |