From e0791969c8913f7719f59cf57983f5388a311cc6 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Thu, 27 Mar 2014 17:48:36 +0100 Subject: remove PROFILE checks never defined, follow-up of 512de6e75d34d2144392d1e78c25446f2d0b3a35 --- store/workben/t_store.cxx | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'store') diff --git a/store/workben/t_store.cxx b/store/workben/t_store.cxx index 160d3d80883c..25ce3f7be9a6 100644 --- a/store/workben/t_store.cxx +++ b/store/workben/t_store.cxx @@ -334,9 +334,7 @@ int SAL_CALL main (int argc, char **argv) pBuffer[_DEMOSTOR_BUFSIZ - 1] = '\0'; // Load/Save. -#ifndef PROFILE OTime aStartTime (OTime::getSystemTime()); -#endif /* PROFILE */ for (int i = 0; i < _DEMOSTOR_LOOPS; i++) { @@ -401,7 +399,6 @@ int SAL_CALL main (int argc, char **argv) aStream.close(); -#ifndef PROFILE if (((i + 1) % (_DEMOSTOR_LOOPS/10)) == 0) { OTime aDelta (OTime::getSystemTime() - aStartTime); @@ -412,17 +409,14 @@ int SAL_CALL main (int argc, char **argv) printf ("%d: %12.4g[usec]\n", (i+1), (double)(nDelta)/(double)(i+1)); } -#endif /* PROFILE */ } -#ifndef PROFILE OTime aDelta (OTime::getSystemTime() - aStartTime); sal_uInt32 nDelta = aDelta.Seconds * 1000000; nDelta += (aDelta.Nanosec / 1000); printf ("Total(rd,wr): %d[usec]\n", (unsigned int)(nDelta)); -#endif /* PROFILE */ } // Link/Rename. @@ -478,9 +472,7 @@ int SAL_CALL main (int argc, char **argv) // Directory iteration. if (nOptions & OPTION_ITER) { -#ifndef PROFILE OTime aStartTime (OTime::getSystemTime()); -#endif /* PROFILE */ OUString aEmpty; // Root directory. @@ -519,14 +511,12 @@ int SAL_CALL main (int argc, char **argv) printf ("Error: can't open directory: \"/\"\n"); } -#ifndef PROFILE OTime aDelta (OTime::getSystemTime() - aStartTime); sal_uInt32 nDelta = aDelta.Seconds * 1000000; nDelta += (aDelta.Nanosec / 1000); printf ("Total(iter): %d[usec]\n", (unsigned int)(nDelta)); -#endif /* PROFILE */ } if (nOptions & OPTION_PAUSE) @@ -544,14 +534,12 @@ int SAL_CALL main (int argc, char **argv) // Done. aFile.close(); -#ifndef PROFILE OTime aDelta (OTime::getSystemTime() - aMainStartTime); sal_uInt32 nDelta = aDelta.Seconds * 1000000; nDelta += (aDelta.Nanosec / 1000); printf ("Total: %d[usec]\n", (unsigned int)(nDelta)); -#endif /* PROFILE */ return 0; } -- cgit