QElapsedTimer: document Duration and TimePoint typedefs

Fixes: QTBUG-116876
Change-Id: I71215d9f9e3caf0c50635a86c65c94a6f097cbe0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 3fbcf53828c039d1210e203c8c631d10e26deee1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Ahmad Samir 2023-09-09 22:46:39 +03:00 committed by Qt Cherry-pick Bot
parent 23c87ff341
commit 046ea6b707

View File

@ -201,6 +201,16 @@ bool QElapsedTimer::isMonotonic() noexcept
return true;
}
/*!
\typealias QElapsedTimer::Duration
Synonym for \c std::chrono::nanoseconds.
*/
/*!
\typealias QElapsedTimer::TimePoint
Synonym for \c {std::chrono::time_point<std::chrono::steady_clock, Duration>}.
*/
/*!
Starts this timer. Once started, a timer value can be checked with elapsed() or msecsSinceReference().