[Libreoffice-commits] .: sw/qa
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Jun 24 04:52:50 PDT 2011
sw/qa/core/filters-test.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 30ac4e4448ee2e27a966cfd8c0050e85a0667c04
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jun 24 12:47:57 2011 +0100
add timing information
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index 060f0eb..9844a29 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -149,10 +149,12 @@ void FiltersTest::recursiveScan(const rtl::OUString &rFilter, const rtl::OUStrin
{
fprintf(stderr, "loading %s\n", aRes.getStr());
}
+ sal_uInt32 nStartTime = osl_getGlobalTimer();
bool bRes = load(rFilter, sURL, rUserData);
+ sal_uInt32 nEndTime = osl_getGlobalTimer();
if (nExpected == indeterminate)
{
- fprintf(stderr, "pass/fail was %d\n", bRes);
+ fprintf(stderr, "pass/fail was %d (%d ms)\n", bRes, nEndTime-nStartTime);
continue;
}
CPPUNIT_ASSERT_MESSAGE(aRes.getStr(), bRes == nExpected);
More information about the Libreoffice-commits
mailing list