summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/posix/Time.h
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2008-10-29 22:11:46 +0000
committerStephen D. Huston <shuston@apache.org>2008-10-29 22:11:46 +0000
commitfd0ee666d7d2026b81e3aaa85e15f380c32f109f (patch)
treeebfe7fcad03d8d43eb14867a99af372518a1a817 /cpp/src/qpid/sys/posix/Time.h
parent6d26c9b2c8a19cfd23336d2498bcad561a4458f6 (diff)
downloadqpid-python-fd0ee666d7d2026b81e3aaa85e15f380c32f109f.tar.gz
Allow AbsTime and Duration to be used cross-platform; add usleep() wrapper. Related to QPID-1209
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@709028 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/posix/Time.h')
-rwxr-xr-xcpp/src/qpid/sys/posix/Time.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/posix/Time.h b/cpp/src/qpid/sys/posix/Time.h
new file mode 100755
index 0000000000..62d734c816
--- /dev/null
+++ b/cpp/src/qpid/sys/posix/Time.h
@@ -0,0 +1,34 @@
+#ifndef QPID_SYS_POSIX_TIME_H
+#define QPID_SYS_POSIX_TIME_H
+
+/*
+ *
+ * Copyright (c) 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include "qpid/sys/IntegerTypes.h"
+
+namespace qpid {
+namespace sys {
+
+/**
+ * Class to represent an instant in time.
+ */
+typedef int64_t TimePrivate;
+
+}} // namespace qpid::sys
+
+#endif /*!QPID_SYS_POSIX_TIME_H*/