Changeset View
Changeset View
Standalone View
Standalone View
src/utiltime.h
Show All 18 Lines | |||||
* compare numbers with different units, or compare a mocktime to system time). | * compare numbers with different units, or compare a mocktime to system time). | ||||
*/ | */ | ||||
int64_t GetTime(); | int64_t GetTime(); | ||||
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(); | ||||
int64_t GetLogTimeMicros(); | |||||
void SetMockTime(int64_t nMockTimeIn); | void SetMockTime(int64_t nMockTimeIn); | ||||
int64_t GetMockTime(); | |||||
void MilliSleep(int64_t n); | void MilliSleep(int64_t n); | ||||
std::string DateTimeStrFormat(const char *pszFormat, int64_t nTime); | std::string DateTimeStrFormat(const char *pszFormat, int64_t nTime); | ||||
#endif // BITCOIN_UTILTIME_H | #endif // BITCOIN_UTILTIME_H |