Add option for microsecond precision in debug.log

This commit is contained in:
Suhas Daftuar
2015-10-23 13:07:36 -04:00
parent d78a880900
commit 7bbc7c314f
5 changed files with 22 additions and 3 deletions

View File

@@ -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)
{