mirror of https://github.com/KLayout/klayout.git
Fixed a linker issue.
This commit is contained in:
parent
1f8afab417
commit
e9dcadb278
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue