aboutsummaryrefslogtreecommitdiff
path: root/util.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-03-13 17:15:57 -0400
committerGavin Andresen <gavinandresen@gmail.com>2011-03-13 17:15:57 -0400
commitd43fd8a038b7e5068e5db357ba7a9006da812d8a (patch)
tree9717e97ec5a19c7b8468c113a07e955bfb566a28 /util.cpp
parent2abd56f4280cf19e76b1eab3544f75954a0c267f (diff)
parentca221e6c21d684d50fa1fb9f9e7e3592ecc5ef5f (diff)
Merge branch 'log-timestamp' of https://github.com/TheBlueMatt/bitcoin
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/util.cpp b/util.cpp
index 124174bd9d..26f8e0ac21 100644
--- a/util.cpp
+++ b/util.cpp
@@ -170,8 +170,9 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
}
if (fileout)
{
- //// Debug print useful for profiling
- //fprintf(fileout, " %"PRI64d" ", GetTimeMillis());
+ // Debug print useful for profiling
+ if (GetBoolArg("-logtimestamps"))
+ fprintf(fileout, "%s ", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
va_list arg_ptr;
va_start(arg_ptr, pszFormat);
ret = vfprintf(fileout, pszFormat, arg_ptr);