diff options
author | Ed Maste <emaste@FreeBSD.org> | 2013-11-06 16:48:53 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2013-11-06 16:48:53 +0000 |
commit | f21a844f60ae6c74fcf1fddca32461acce3c1ee0 (patch) | |
tree | 56d79f94966870db1cecd65a7264510a25fd1cba /source/Core/Log.cpp | |
parent | 37d22554be9f5a677dad2a95b7ef22fe59c66a8a (diff) |
Notes
Diffstat (limited to 'source/Core/Log.cpp')
-rw-r--r-- | source/Core/Log.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/Core/Log.cpp b/source/Core/Log.cpp index d73ab15f697a0..8d659cfd7522d 100644 --- a/source/Core/Log.cpp +++ b/source/Core/Log.cpp @@ -10,11 +10,9 @@ #include "lldb/lldb-python.h" // C Includes -#include <pthread.h> #include <stdio.h> #include <stdarg.h> #include <stdlib.h> -#include <unistd.h> // C++ Includes #include <map> @@ -101,8 +99,8 @@ Log::PrintfWithFlagsVarArg (uint32_t flags, const char *format, va_list args) // Timestamp if requested if (m_options.Test (LLDB_LOG_OPTION_PREPEND_TIMESTAMP)) { - struct timeval tv = TimeValue::Now().GetAsTimeVal(); - header.Printf ("%9ld.%6.6d ", tv.tv_sec, (int32_t)tv.tv_usec); + TimeValue now = TimeValue::Now(); + header.Printf ("%9d.%6.6d ", now.seconds(), now.nanoseconds()); } // Add the process and thread if requested |