summaryrefslogtreecommitdiff
path: root/writerfilter/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-04-21 17:07:54 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-04-21 19:16:38 +0200
commitda07d3a7bdb75efb34448dfb5ebca8b8b6135546 (patch)
tree127aa25007b9c603174bb517f1d337d9436a76d2 /writerfilter/source
parent2457f8f5b88028d0248943e2f80fce55913312f1 (diff)
rtftok: make it possible to see the time spent in the filter
Diffstat (limited to 'writerfilter/source')
-rw-r--r--writerfilter/source/filter/RtfFilter.cxx4
1 files changed, 3 insertions, 1 deletions
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)