QwtSystemClock provides high resolution clock time functions. More...
#include <qwt_system_clock.h>
Classes | |
class | PrivateData |
Public Member Functions | |
double | elapsed () const |
bool | isNull () const |
QwtSystemClock () | |
Constructs a null clock object. More... | |
double | restart () |
void | start () |
virtual | ~QwtSystemClock () |
Destructor. More... | |
Private Attributes | |
PrivateData * | d_data |
QwtSystemClock provides high resolution clock time functions.
Sometimes the resolution offered by QTime ( millisecond ) is not accurate enough for implementing time measurements ( f.e. sampling ). QwtSystemClock offers a subset of the QTime functionality using higher resolution timers ( if possible ).
Precision and time intervals are multiples of milliseconds (ms).
( QwtSystemClock is obsolete since Qt 4.8 as QElapsedTimer offers the same precision )
Definition at line 33 of file qwt_system_clock.h.
QwtSystemClock::QwtSystemClock | ( | ) |
Constructs a null clock object.
Definition at line 309 of file qwt_system_clock.cpp.
|
virtual |
Destructor.
Definition at line 321 of file qwt_system_clock.cpp.
double QwtSystemClock::elapsed | ( | ) | const |
Definition at line 376 of file qwt_system_clock.cpp.
bool QwtSystemClock::isNull | ( | ) | const |
Definition at line 332 of file qwt_system_clock.cpp.
double QwtSystemClock::restart | ( | ) |
Set the start time to the current time
Definition at line 362 of file qwt_system_clock.cpp.
void QwtSystemClock::start | ( | ) |
Sets the start time to the current time.
Definition at line 345 of file qwt_system_clock.cpp.
|
private |
Definition at line 48 of file qwt_system_clock.h.