diff options
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/profilezone.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/comphelper/source/misc/profilezone.cxx b/comphelper/source/misc/profilezone.cxx index ff76a4f35e8d..5abcca8a80b3 100644 --- a/comphelper/source/misc/profilezone.cxx +++ b/comphelper/source/misc/profilezone.cxx @@ -10,6 +10,7 @@ #include <sal/config.h> #include <atomic> +#include <iostream> #include <comphelper/sequence.hxx> #include <comphelper/profilezone.hxx> @@ -98,6 +99,14 @@ css::uno::Sequence<OUString> getRecordingAndClear() } // namespace ProfileRecording +void ProfileZone::startConsole() { m_aCreateTime = osl_getGlobalTimer(); } + +void ProfileZone::stopConsole() +{ + sal_uInt32 nEndTime = osl_getGlobalTimer(); + std::cerr << "comphelper::ProfileZone: " << m_sProfileId << " finished in " + << nEndTime - m_aCreateTime << " ms" << std::endl; +} } // namespace comphelper |