Last change
on this file since 10119 was 9383, checked in by stoecker, 4 years ago |
update to qwt verion 6.1.1 to fix build with newer Qt5
|
File size:
1.4 KB
|
Line | |
---|
1 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
|
---|
2 | * Qwt Widget Library
|
---|
3 | * Copyright (C) 1997 Josef Wilgen
|
---|
4 | * Copyright (C) 2002 Uwe Rathmann
|
---|
5 | *
|
---|
6 | * This library is free software; you can redistribute it and/or
|
---|
7 | * modify it under the terms of the Qwt License, Version 1.0
|
---|
8 | *****************************************************************************/
|
---|
9 |
|
---|
10 | #ifndef QWT_SYSTEM_CLOCK_H
|
---|
11 | #define QWT_SYSTEM_CLOCK_H
|
---|
12 |
|
---|
13 | #include "qwt_global.h"
|
---|
14 |
|
---|
15 | /*!
|
---|
16 | \brief QwtSystemClock provides high resolution clock time functions.
|
---|
17 |
|
---|
18 | Sometimes the resolution offered by QTime ( millisecond ) is not accurate
|
---|
19 | enough for implementing time measurements ( f.e. sampling ).
|
---|
20 | QwtSystemClock offers a subset of the QTime functionality using higher
|
---|
21 | resolution timers ( if possible ).
|
---|
22 |
|
---|
23 | Precision and time intervals are multiples of milliseconds (ms).
|
---|
24 |
|
---|
25 | ( QwtSystemClock is obsolete since Qt 4.8 as QElapsedTimer offers the same
|
---|
26 | precision )
|
---|
27 |
|
---|
28 | \note The implementation uses high-resolution performance counter on Windows,
|
---|
29 | mach_absolute_time() on the Mac or POSIX timers on other systems.
|
---|
30 | If none is available it falls back on QTimer.
|
---|
31 | */
|
---|
32 |
|
---|
33 | class QWT_EXPORT QwtSystemClock
|
---|
34 | {
|
---|
35 | public:
|
---|
36 | QwtSystemClock();
|
---|
37 | virtual ~QwtSystemClock();
|
---|
38 |
|
---|
39 | bool isNull() const;
|
---|
40 |
|
---|
41 | void start();
|
---|
42 | double restart();
|
---|
43 | double elapsed() const;
|
---|
44 |
|
---|
45 | private:
|
---|
46 | class PrivateData;
|
---|
47 | PrivateData *d_data;
|
---|
48 | };
|
---|
49 |
|
---|
50 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.