Qwt User's Guide
svn
|
#include <qwt_system_clock.h>
Public Member Functions | |
double | elapsed () const |
bool | isNull () const |
QwtSystemClock () | |
double | restart () |
void | start () |
virtual | ~QwtSystemClock () |
Static Public Member Functions | |
static double | precision () |
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::QwtSystemClock | ( | ) |
Constructs a null clock object.
QwtSystemClock::~QwtSystemClock | ( | ) | [virtual] |
Destructor.
double QwtSystemClock::elapsed | ( | ) | const |
bool QwtSystemClock::isNull | ( | ) | const |
double QwtSystemClock::precision | ( | ) | [static] |
double QwtSystemClock::restart | ( | ) |
The start time to the current time and return the time, that is elapsed since the previous start time.
void QwtSystemClock::start | ( | ) |
Sets the start time to the current time.