summaryrefslogtreecommitdiff
path: root/kdecore/io/kdebug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/io/kdebug.cpp')
-rw-r--r--kdecore/io/kdebug.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kdecore/io/kdebug.cpp b/kdecore/io/kdebug.cpp
index d72da01..7526904 100644
--- a/kdecore/io/kdebug.cpp
+++ b/kdecore/io/kdebug.cpp
@@ -886,7 +886,7 @@ KDebug::Block::Block(const char* label, int area)
} else {
d = new Private;
d->m_label = label;
- m_startTime.start();
+ //m_startTime.start();
kDebug(area) << "BEGIN:" << label;
// The indent string is per thread
@@ -901,12 +901,12 @@ KDebug::Block::Block(const char* label, int area)
KDebug::Block::~Block()
{
if (d) {
- const double duration = m_startTime.elapsed() / 1000.0;
+ //const double duration = m_startTime.elapsed() / 1000.0;
QThreadStorage<QString*> & indentString = kDebug_data->m_indentString;
indentString.localData()->chop(2);
// Print timing information, and a special message (DELAY) if the method took longer than 5s
- if (duration < 5.0) {
+ /*if (duration < 5.0) {
kDebug(m_area)
<< "END__:"
<< d->m_label.constData()
@@ -916,7 +916,7 @@ KDebug::Block::~Block()
<< "END__:"
<< d->m_label.constData()
<< qPrintable(QString::fromLatin1("[DELAY Took (quite long) %3s]").arg(QString::number(duration, 'g', 2)));
- }
+ }*/
delete d;
}
}