From 828a2052af4fc2075c86f4dca2dc7a484737f7cf Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Tue, 13 Mar 2001 14:27:02 +0000 Subject: use ftime() for windows --- configmgr/source/inc/tracer.hxx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'configmgr/source/inc/tracer.hxx') 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 #include + +#ifdef WNT +#include +#else #include +#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 // -- cgit