mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Add option for microsecond precision in debug.log
This commit is contained in:
@@ -40,6 +40,14 @@ int64_t GetTimeMicros()
|
||||
boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_microseconds();
|
||||
}
|
||||
|
||||
/** Return a time useful for the debug log */
|
||||
int64_t GetLogTimeMicros()
|
||||
{
|
||||
if (nMockTime) return nMockTime*1000000;
|
||||
|
||||
return GetTimeMicros();
|
||||
}
|
||||
|
||||
void MilliSleep(int64_t n)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user