diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-03-27 17:48:36 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-03-27 17:48:36 +0100 |
commit | e0791969c8913f7719f59cf57983f5388a311cc6 (patch) | |
tree | c83c280a501c430f147cc7e540ff0d1748d3e9a9 /store | |
parent | b6e2851806c2d56674b6737c4f208e916e677764 (diff) |
remove PROFILE checks
never defined, follow-up of 512de6e75d34d2144392d1e78c25446f2d0b3a35
Diffstat (limited to 'store')
-rw-r--r-- | store/workben/t_store.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
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; } |