7#include "private/qfunctions_p.h"
10#if !defined(QT_NO_CONCURRENT) || defined(Q_QDOC)
25 return double(after - before);
70 : maxBlockSize(iterationCount / (
pool->maxThreadCount() * 2)),
71 beforeUser(0), afterUser(0),
101 m_blockSize =
qMin(m_blockSize * 2, maxBlockSize);
103#ifdef QTCONCURRENT_FOR_DEBUG
109 controlPartElapsed.
reset();
110 userPartElapsed.
reset();
static QDeadlineTimer current(Qt::TimerType timerType=Qt::CoarseTimer) noexcept
Returns a QDeadlineTimer that is expired but is guaranteed to contain the current time.
qint64 deadlineNSecs() const noexcept Q_DECL_PURE_FUNCTION
Returns the absolute time point for the deadline stored in QDeadlineTimer object, calculated in nanos...
static QThread * currentThread()
BlockSizeManager(QThreadPool *pool, int iterationCount)
Combined button and popup list for selecting options.
constexpr const T & qMin(const T &a, const T &b)
static double elapsed(qint64 after, qint64 before)