diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-11-26 11:16:59 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-11-26 11:16:59 -0500 |
commit | a95f41d1e151a4efebb1f4bb976340cee3a94a2b (patch) | |
tree | d1e8197ec8e57f6da15a8df397a39dc5806ac474 /sc | |
parent | e4b384e7a0d7248c9346bbe153e12e3abcca5f32 (diff) |
Removed stack printer definition. Oops.
I didn't intend to check this piece in, sorry.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 3727c8c1ff62..2fc09e79f491 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -170,47 +170,6 @@ using ::rtl::OUStringBuffer; using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::UNO_QUERY; -#include <stdio.h> -#include <string> -#include <osl/time.h> - -namespace { - -class StackPrinter -{ -public: - explicit StackPrinter(const char* msg) : - msMsg(msg) - { - fprintf(stdout, "%s: --begin\n", msMsg.c_str()); - mfStartTime = getTime(); - } - - ~StackPrinter() - { - double fEndTime = getTime(); - fprintf(stdout, "%s: --end (duration: %g sec)\n", msMsg.c_str(), (fEndTime-mfStartTime)); - } - - void printTime(int line) const - { - double fEndTime = getTime(); - fprintf(stdout, "%s: --(%d) (duration: %g sec)\n", msMsg.c_str(), line, (fEndTime-mfStartTime)); - } - -private: - double getTime() const - { - TimeValue tv; osl_getSystemTime(&tv); - return tv.Seconds + tv.Nanosec / 1000000000.0; - } - - ::std::string msMsg; - double mfStartTime; -}; - -} - //---------------------------------------------------------------------------- namespace |