Qwt User's Guide
6.1.6
|
QwtSystemClock provides high resolution clock time functions. More...
#include <qwt_system_clock.h>
Public Member Functions | |
QwtSystemClock () | |
Constructs a null clock object. | |
virtual | ~QwtSystemClock () |
Destructor. | |
bool | isNull () const |
void | start () |
double | restart () |
double | elapsed () const |
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 )
double QwtSystemClock::elapsed | ( | ) | const |
bool QwtSystemClock::isNull | ( | ) | const |
double QwtSystemClock::restart | ( | ) |
Set the start time to the current time
void QwtSystemClock::start | ( | ) |
Sets the start time to the current time.