Public Types | Public Member Functions | Static Public Member Functions | Friends

QElapsedTimer Class Reference

Search for all occurrences

Detailed Description

Definition at line 53 of file qelapsedtimer.h.

#include <qelapsedtimer.h>

List of all members.

Public Types

enum   ClockType { SystemTime, MonotonicClock, TickCounter, MachAbsoluteTime }

Public Member Functions

void  start ()
qint64  restart ()
void  invalidate ()
bool  isValid () 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

Member Function Documentation

static ClockType clockType ( ) [static]
static bool isMonotonic ( ) [static]
void start ( )
qint64 restart ( )
void invalidate ( )
bool isValid ( ) 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 77 of file qelapsedtimer.h.

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

Definition at line 79 of file qelapsedtimer.h.

    { 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:

QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer
QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer QElapsedTimer