diff options
Diffstat (limited to 'testtools/source/performance/ubtest.cxx')
-rw-r--r-- | testtools/source/performance/ubtest.cxx | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/testtools/source/performance/ubtest.cxx b/testtools/source/performance/ubtest.cxx index 0347612fa18c..4eaadf24bec2 100644 --- a/testtools/source/performance/ubtest.cxx +++ b/testtools/source/performance/ubtest.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -83,8 +83,8 @@ using namespace com::sun::star::bridge; using namespace com::sun::star::container; using namespace com::sun::star::test::performance; -#define SERVICENAME "com.sun.star.test.performance.PerformanceTest" -#define IMPLNAME "com.sun.star.comp.performance.PerformanceTest" +#define SERVICENAME "com.sun.star.test.performance.PerformanceTest" +#define IMPLNAME "com.sun.star.comp.performance.PerformanceTest" namespace benchmark_test { @@ -94,18 +94,18 @@ static inline sal_uInt32 getSystemTicks() #ifdef SAL_W32 return (sal_uInt32)GetTickCount(); #else // only UNX supported for now - static sal_uInt32 nImplTicksPerSecond = 0; - static double dImplTicksPerSecond; - static double dImplTicksULONGMAX; + static sal_uInt32 nImplTicksPerSecond = 0; + static double dImplTicksPerSecond; + static double dImplTicksULONGMAX; - struct tms aTms; + struct tms aTms; sal_uInt32 nTicks = (sal_uInt32)times( &aTms ); if ( !nImplTicksPerSecond ) { nImplTicksPerSecond = sysconf(_SC_CLK_TCK); dImplTicksPerSecond = nImplTicksPerSecond; - dImplTicksULONGMAX = (double)(sal_uInt32)ULONG_MAX; + dImplTicksULONGMAX = (double)(sal_uInt32)ULONG_MAX; } double fTicks = nTicks; @@ -368,10 +368,10 @@ static void createInstance( Reference< T > & rxOut, OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.bridge.UnoUrlResolver") ), xMgr, Reference< XRegistryKey >() ) ) ); // java loader -// xSet->insert( makeAny( loadLibComponentFactory( -// OUString( RTL_CONSTASCII_USTRINGPARAM("javaloader") ), -// OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.stoc.JavaComponentLoader") ), -// xMgr, Reference< XRegistryKey >() ) ) ); +// xSet->insert( makeAny( loadLibComponentFactory( +// OUString( RTL_CONSTASCII_USTRINGPARAM("javaloader") ), +// OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.stoc.JavaComponentLoader") ), +// xMgr, Reference< XRegistryKey >() ) ) ); } s_bSet = sal_True; } @@ -522,8 +522,8 @@ Reference< XInterface > TestImpl::resolveObject( const OUString & rUnoUrl ) //================================================================================================== class TimeEntry { - sal_Int64 nLoop; - sal_uInt32 nTicks; + sal_Int64 nLoop; + sal_uInt32 nTicks; public: TimeEntry() @@ -558,7 +558,7 @@ typedef std::map< std::string, TimeEntry > t_TimeEntryMap; //================================================================================================== struct TimingSheet { - t_TimeEntryMap _entries; + t_TimeEntryMap _entries; void insert( const sal_Char * pText, sal_Int64 nLoop, sal_uInt32 nTicks ); }; //__________________________________________________________________________________________________ @@ -922,12 +922,12 @@ static void benchmark( rSheet.insert( "Ad: set struct attribute", nLoop, tEnd - tStart ); // load -// i = nLoop; -// tStart = getSystemTicks(); -// while (i--) -// xBench->setSequence( aSeq ); -// tEnd = getSystemTicks(); -// rSheet.insert( "transfer of exisiting objects", nLoop, tEnd - tStart ); +// i = nLoop; +// tStart = getSystemTicks(); +// while (i--) +// xBench->setSequence( aSeq ); +// tEnd = getSystemTicks(); +// rSheet.insert( "transfer of exisiting objects", nLoop, tEnd - tStart ); // exceptions i = nLoop; |