From da07d3a7bdb75efb34448dfb5ebca8b8b6135546 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sat, 21 Apr 2012 17:07:54 +0200 Subject: rtftok: make it possible to see the time spent in the filter --- writerfilter/source/filter/RtfFilter.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/writerfilter/source/filter/RtfFilter.cxx b/writerfilter/source/filter/RtfFilter.cxx index b57207f589f2..0f37279b94dd 100644 --- a/writerfilter/source/filter/RtfFilter.cxx +++ b/writerfilter/source/filter/RtfFilter.cxx @@ -54,7 +54,7 @@ RtfFilter::~RtfFilter() sal_Bool RtfFilter::filter( const uno::Sequence< beans::PropertyValue >& aDescriptor ) throw (uno::RuntimeException) { - SAL_INFO("writerfilter", OSL_THIS_FUNC); + sal_uInt32 nStartTime = osl_getGlobalTimer(); if( m_xSrcDoc.is() ) { uno::Reference< lang::XMultiServiceFactory > xMSF(m_xContext->getServiceManager(), uno::UNO_QUERY_THROW); @@ -102,6 +102,8 @@ sal_Bool RtfFilter::filter( const uno::Sequence< beans::PropertyValue >& aDescri #endif if (xStatusIndicator.is()) xStatusIndicator->end(); + sal_uInt32 nEndTime = osl_getGlobalTimer(); + SAL_INFO("writerfilter.profile", OSL_THIS_FUNC << " finished in " << nEndTime - nStartTime << " ms"); return sal_True; } catch (const uno::Exception& e) -- cgit v1.2.3