summaryrefslogtreecommitdiff
path: root/configmgr/source/inc/tracer.hxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2001-03-13 14:27:02 +0000
committerKurt Zenker <kz@openoffice.org>2001-03-13 14:27:02 +0000
commit828a2052af4fc2075c86f4dca2dc7a484737f7cf (patch)
treeef84daee3dfb6503bf0246d6f151c05f1dfea9c1 /configmgr/source/inc/tracer.hxx
parenta7b769c7090217bbdc5dd45c0b85943ac6c43281 (diff)
use ftime() for windows
Diffstat (limited to 'configmgr/source/inc/tracer.hxx')
-rw-r--r--configmgr/source/inc/tracer.hxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/configmgr/source/inc/tracer.hxx b/configmgr/source/inc/tracer.hxx
index caf37f184a18..524fa406cdcc 100644
--- a/configmgr/source/inc/tracer.hxx
+++ b/configmgr/source/inc/tracer.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tracer.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: pluby $ $Date: 2001-03-11 02:16:12 $
+ * last change: $Author: kz $ $Date: 2001-03-13 15:27:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,7 +78,12 @@
#include <stdarg.h>
#include <stdio.h>
+
+#ifdef WNT
+#include <sys/timeb.h>
+#else
#include <sys/time.h>
+#endif
#define OUSTRING2ASCII(rtlOUString) ::rtl::OString((rtlOUString).getStr(), (rtlOUString).getLength(), RTL_TEXTENCODING_ASCII_US).getStr()
@@ -103,7 +108,11 @@ class OConfigTracer
protected:
static ::osl::Mutex s_aMutex;
static OTracerSetup* s_pImpl;
+#ifdef WNT
+ static timeb s_aStartTime;
+#else
static timeval s_aStartTime;
+#endif
private:
OConfigTracer(); // never implemented, no instantiation of this class allowed, only static members
@@ -161,6 +170,9 @@ public:
//**************************************************************************
// history:
// $Log: not supported by cvs2svn $
+// Revision 1.3 2001/03/11 02:16:12 pluby
+// Replaced ftime() calls with gettimeofday() since ftime() is obsolete on Linux and Mac OS X
+//
// Revision 1.2 2001/02/13 09:47:14 dg
// #83239# timing output
//