Switch to QElapsedTimer since QTime is deprecated for our usecase in Qt 5.14
This commit is contained in:
parent
10e8277044
commit
d961f2bc13
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue