summaryrefslogtreecommitdiff
path: root/cppe/test/Common/TestCommon.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-06-17 19:00:38 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-06-17 19:00:38 +0000
commitbde2b02d015de51647be3c2e998a66cb45698461 (patch)
tree679fa2cdf8fb85f1aecf6789a08b31159410e2e3 /cppe/test/Common/TestCommon.cpp
parentremoving unnecessary data member (diff)
downloadice-bde2b02d015de51647be3c2e998a66cb45698461.tar.bz2
ice-bde2b02d015de51647be3c2e998a66cb45698461.tar.xz
ice-bde2b02d015de51647be3c2e998a66cb45698461.zip
Fixed linux comp
Diffstat (limited to 'cppe/test/Common/TestCommon.cpp')
-rwxr-xr-xcppe/test/Common/TestCommon.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/cppe/test/Common/TestCommon.cpp b/cppe/test/Common/TestCommon.cpp
index 9355f900619..6d6eb9bc424 100755
--- a/cppe/test/Common/TestCommon.cpp
+++ b/cppe/test/Common/TestCommon.cpp
@@ -11,6 +11,10 @@
#include <TestApplication.h>
#include <IceUtil/StaticMutex.h>
#include <IceUtil/Thread.h>
+#ifndef _WIN32
+# include <IceUtil/Time.h>
+#endif
+
#include <stdarg.h>
@@ -30,10 +34,14 @@ public:
virtual void
trace(const string& category, const string& message)
{
+ string s = "[ ";
+#ifdef _WIN32
char buf[1024];
sprintf(buf, "%ld", GetTickCount());
- string s = "[ ";
s += buf;
+#else
+ s += IceUtil::Time::now().toString();
+#endif
s += ' ';
if(!category.empty())