summaryrefslogtreecommitdiff
path: root/automation/source
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-11-09 15:52:02 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-11-09 15:52:02 +0000
commit6d1b12ce5a411b1a8119d9ce74a645aa21c209df (patch)
tree7e83ece8944a234452613ca999fdd8fb3cd24824 /automation/source
parent296c3b1d3d3caad35416d199377100e849babaa9 (diff)
INTEGRATION: CWS gh8 (1.2.34); FILE MERGED
2004/10/14 13:55:07 gh 1.2.34.1: DIFF_MS was implemented wrong
Diffstat (limited to 'automation/source')
-rw-r--r--automation/source/server/prof_usl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/automation/source/server/prof_usl.cxx b/automation/source/server/prof_usl.cxx
index 6973cfab6783..974f29fb474d 100644
--- a/automation/source/server/prof_usl.cxx
+++ b/automation/source/server/prof_usl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: prof_usl.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: kz $ $Date: 2004-02-26 13:43:11 $
+ * last change: $Author: hr $ $Date: 2004-11-09 16:52:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -140,7 +140,7 @@ void TTProfiler::GetSysdepProfileSnapshot( SysdepProfileSnapshot *pSysdepProfile
#define DIFF2( aFirst, aSecond, Membername ) ( aSecond.Membername - aFirst.Membername )
#define CALC_MS( nSec, nNSec ) ( nSec * 1000 + (nNSec+500000) / 1000000 )
-#define DIFF_MS( pStart, pEnd, Member ) ( CALC_MS( DIFF2( pStart->Member, pEnd->Member, tv_sec ), DIFF2( pStart->Member, pEnd->Member, tv_nsec ) ) )
+#define DIFF_MS( pStart, pEnd, Member ) ( CALC_MS( pEnd->Member.tv_sec, pEnd->Member.tv_nsec ) - CALC_MS( pStart->Member.tv_sec, pStart->Member.tv_nsec ) )
// Informationszeile zusammenbauen
String TTProfiler::GetSysdepProfileLine( SysdepProfileSnapshot *pStart, SysdepProfileSnapshot *pStop )
{