QElapsedTimer Class Reference

#include <qelapsedtimer.h>

Class Description

Definition at line 53 of file qelapsedtimer.h.

Public Types

enum  ClockType {
  SystemTime, MonotonicClock, TickCounter, MachAbsoluteTime,
  PerformanceCounter
}
 

Public Member Functions

void start ()
 
qint64 restart ()
 
void invalidate ()
 
bool isValid () const
 
qint64 nsecsElapsed () const
 
qint64 elapsed () const
 
bool hasExpired (qint64 timeout) const
 
qint64 msecsSinceReference () const
 
qint64 msecsTo (const QElapsedTimer &other) const
 
qint64 secsTo (const QElapsedTimer &other) const
 
bool operator== (const QElapsedTimer &other) const
 
bool operator!= (const QElapsedTimer &other) const
 

Static Public Member Functions

static ClockType clockType ()
 
static bool isMonotonic ()
 

Friends

bool Q_CORE_EXPORT operator< (const QElapsedTimer &v1, const QElapsedTimer &v2)
 

Member Enumeration Documentation

enum ClockType
Enumerator
SystemTime 
MonotonicClock 
TickCounter 
MachAbsoluteTime 
PerformanceCounter 

Definition at line 56 of file qelapsedtimer.h.

Member Function Documentation

static ClockType clockType ( )
static
static bool isMonotonic ( )
static
void start ( )
qint64 restart ( )
void invalidate ( )
bool isValid ( ) const
qint64 nsecsElapsed ( ) const
qint64 elapsed ( ) const
bool hasExpired ( qint64  timeout) const
qint64 msecsSinceReference ( ) const
qint64 msecsTo ( const QElapsedTimer other) const
qint64 secsTo ( const QElapsedTimer other) const
bool operator== ( const QElapsedTimer other) const
inline

Definition at line 79 of file qelapsedtimer.h.

80  { return t1 == other.t1 && t2 == other.t2; }
bool operator!= ( const QElapsedTimer other) const
inline

Definition at line 81 of file qelapsedtimer.h.

82  { return !(*this == other); }

Friends And Related Function Documentation

bool Q_CORE_EXPORT operator< ( const QElapsedTimer v1,
const QElapsedTimer v2 
)
friend

The documentation for this class was generated from the following file: