Fixed a linker issue.

This commit is contained in:
Matthias Koefferlein 2018-07-04 00:25:34 +02:00
parent 1f8afab417
commit e9dcadb278
2 changed files with 2 additions and 8 deletions

View File

@ -34,12 +34,6 @@ class QDateTime;
namespace tl
{
/**
* @brief Provides a ms difference between QDateTimes
* This function is provided to emulate QDateTime::msecsTo for Qt < 4.7
*/
TL_PUBLIC int64_t msecs_to (const QDateTime &from, const QDateTime &to);
/**
* @brief A basic timer class
*

View File

@ -36,8 +36,8 @@
void wait_for_ms (int ms)
{
QDateTime start = QDateTime::currentDateTime ();
while (tl::msecs_to (start, QDateTime::currentDateTime()) < ms) {
tl::Clock start = tl::Clock::current ();
while ((tl::Clock::current () - start).seconds () < ms * 0.001) {
QCoreApplication::processEvents ();
}
}