Switch to QElapsedTimer since QTime is deprecated for our usecase in Qt 5.14

This commit is contained in:
Cameron Gutman 2019-12-16 23:16:31 -08:00
parent 10e8277044
commit d961f2bc13

View File

@ -9,6 +9,7 @@
#include <QPalette> #include <QPalette>
#include <QFont> #include <QFont>
#include <QCursor> #include <QCursor>
#include <QElapsedTimer>
// Don't let SDL hook our main function, since Qt is already // Don't let SDL hook our main function, since Qt is already
// doing the same thing. This needs to be before any headers // doing the same thing. This needs to be before any headers
@ -52,7 +53,7 @@
#endif #endif
#ifdef USE_CUSTOM_LOGGER #ifdef USE_CUSTOM_LOGGER
static QTime s_LoggerTime; static QElapsedTimer s_LoggerTime;
static QTextStream s_LoggerStream(stdout); static QTextStream s_LoggerStream(stdout);
static QMutex s_LoggerLock; static QMutex s_LoggerLock;
#ifdef LOG_TO_FILE #ifdef LOG_TO_FILE