summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-04-23 03:59:52 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-04-23 03:59:52 +0000
commitfbbda16ce5d06ebebc7d6eabdbd0769a3d886cb8 (patch)
tree7243947a60c12915121bb3f6b21fc40c7d4af72c /cpp/src/qpid/sys
parent0251793e6387b741424787ae4902994fd2f46e9f (diff)
downloadqpid-python-fbbda16ce5d06ebebc7d6eabdbd0769a3d886cb8.tar.gz
QPID-1904: Ensure that all timestamp uses are correctly relative to 1/1/1970 epoch.
- Removed the hacky way to access the internal time value in AbsTime now that there is a defined AbsTime value EPOCH. - Changed all the code to use Duration(EPOCH, abtime) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@937147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys')
-rw-r--r--cpp/src/qpid/sys/posix/Time.cpp4
-rw-r--r--cpp/src/qpid/sys/windows/Time.cpp5
2 files changed, 0 insertions, 9 deletions
diff --git a/cpp/src/qpid/sys/posix/Time.cpp b/cpp/src/qpid/sys/posix/Time.cpp
index 19c7ef20ba..b3858279b4 100644
--- a/cpp/src/qpid/sys/posix/Time.cpp
+++ b/cpp/src/qpid/sys/posix/Time.cpp
@@ -56,10 +56,6 @@ AbsTime AbsTime::now() {
return time_now;
}
-Duration::Duration(const AbsTime& time0) :
- nanosecs(time0.timepoint)
-{}
-
Duration::Duration(const AbsTime& start, const AbsTime& finish) :
nanosecs(finish.timepoint - start.timepoint)
{}
diff --git a/cpp/src/qpid/sys/windows/Time.cpp b/cpp/src/qpid/sys/windows/Time.cpp
index 8d34c937ef..16d09fcdc0 100644
--- a/cpp/src/qpid/sys/windows/Time.cpp
+++ b/cpp/src/qpid/sys/windows/Time.cpp
@@ -59,11 +59,6 @@ AbsTime AbsTime::now() {
return time_now;
}
-Duration::Duration(const AbsTime& time0) : nanosecs(0) {
- time_period p(ptime(min_date_time), time0.timepoint);
- nanosecs = p.length().total_nanoseconds();
-}
-
Duration::Duration(const AbsTime& start, const AbsTime& finish) {
time_duration d = finish.timepoint - start.timepoint;
nanosecs = d.total_nanoseconds();