summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/windows/Time.cpp
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2011-05-02 13:20:36 +0000
committerKim van der Riet <kpvdr@apache.org>2011-05-02 13:20:36 +0000
commite0fbee0877fae24df50ebd1e090fb1778762066a (patch)
tree4908c7d8d094128c832144690a30618f58ba0a2e /cpp/src/qpid/sys/windows/Time.cpp
parent7bdbccee3a78bb4d4df8e67297b1888dbc45efb6 (diff)
downloadqpid-python-e0fbee0877fae24df50ebd1e090fb1778762066a.tar.gz
QPID-3236 - Add high-resolution timestamps to log files for debug situations. Windows impl has a stub only.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1098554 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/windows/Time.cpp')
-rw-r--r--cpp/src/qpid/sys/windows/Time.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/windows/Time.cpp b/cpp/src/qpid/sys/windows/Time.cpp
index 16d09fcdc0..56eade651a 100644
--- a/cpp/src/qpid/sys/windows/Time.cpp
+++ b/cpp/src/qpid/sys/windows/Time.cpp
@@ -97,4 +97,13 @@ void outputFormattedNow(std::ostream& o) {
&timeinfo);
o << time_string << " ";
}
+
+void outputHiresNow(std::ostream& o) {
+// TODO: This is a stub - replace with windows code that will do the equivalent
+// of the Linux code commented out below. (kpvdr)
+// ::timespec time;
+// ::clock_gettime(CLOCK_REALTIME, &time);
+// o << time.tv_sec << "." << std::setw(9) << std::setfill('0') << time.tv_nsec << "s ";
+ o << "XXXXXXXXX.XXXXXXXXXs ";
+}
}}