java.lang.Object
io.qt.QtObject
io.qt.core.QElapsedTimer
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QElapsedTimer>
Fast way to calculate elapsed times
Java wrapper for Qt class QElapsedTimer
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QElapsedTimer.ClockType
clone()
Creates and returns a copy of this object.int
compareTo
(QElapsedTimer other) final Duration
final Duration
durationTo
(QElapsedTimer other) final long
elapsed()
final boolean
equals
(QElapsedTimer rhs) boolean
final boolean
hasExpired
(long timeout) int
hashCode()
Returns the objects's hash code computed byqHash(QElapsedTimer)
.final void
static boolean
final boolean
isValid()
final long
final long
msecsTo
(QElapsedTimer other) final long
final long
restart()
final long
secsTo
(QElapsedTimer other) final void
start()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QElapsedTimer
public QElapsedTimer() -
QElapsedTimer
- Parameters:
other
-
-
-
Method Details
-
durationElapsed
- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
durationTo
- Parameters:
other
-- Returns:
- Since:
- This function was introduced in Qt 6.6.
-
elapsed
- Returns:
-
hasExpired
- Parameters:
timeout
-- Returns:
-
invalidate
-
isValid
- Returns:
-
msecsSinceReference
- Returns:
-
msecsTo
- Parameters:
other
-- Returns:
-
nsecsElapsed
- Returns:
-
equals
- Parameters:
rhs
-- Returns:
-
restart
- Returns:
-
secsTo
- Parameters:
other
-- Returns:
-
start
-
clockType
- Returns:
-
isMonotonic
public static boolean isMonotonic()- Returns:
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QElapsedTimer>
-
hashCode
Returns the objects's hash code computed byqHash(QElapsedTimer)
. -
clone
Creates and returns a copy of this object.
-