/* Copyright (c) 2008-2019 Jan W. Krieger () This software is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License (LGPL) for more details. You should have received a copy of the GNU Lesser General Public License (LGPL) along with this program. If not, see . */ #include "jkqtcommon/jkqtpdebuggingtools.h" #include #include int JKQTPAutoOutputTimer::global_indent=0; JKQTPAutoOutputTimer::JKQTPAutoOutputTimer(const QString& message) : QElapsedTimer() { this->indent=QString(global_indent, QLatin1Char(' ')); global_indent+=4; this->message=message; #if QT_VERSION >= 0x040800 qDebug()<indent<<"TIMER_START: "<indent<<"TIMER_START: "<= 0x040800 qDebug()<indent<<"TIMER_END: "<indent<<"TIMER_END: "<= 0x040800 qDebug()<indent<<"TIMER_MESSAGE: "<message<<" "<indent<<"TIMER_MESSAGE: "<message<<" "<