diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-11-09 15:52:02 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-11-09 15:52:02 +0000 |
commit | 5cee36e217880e727ef5e7f9d592e2121159ab21 (patch) | |
tree | bce029528bfbd1b87f352c28c1ec9cb779e23db8 | |
parent | 62934220ba0833736cb7c0f85ebba85f40b955c8 (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
-rw-r--r-- | automation/source/server/prof_usl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/automation/source/server/prof_usl.cxx b/automation/source/server/prof_usl.cxx index 43655d0ac..560c21a41 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 ) { |