Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_system_clock.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_system_clock.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_system_clock.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 12 12 13 13 #include "qwt_global.h" 14 #include <qelapsedtimer.h> 14 15 15 16 /*! 16 \brief QwtSystemClock provides high resolution clock time functions. 17 \brief QwtSystemClock provides high resolution clock time functions. 17 18 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 ). 19 Precision and time intervals are multiples of milliseconds (ms). 22 20 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 */ 21 ( QwtSystemClock is deprecated as QElapsedTimer offers the same precision ) 22 */ 32 23 33 24 class QWT_EXPORT QwtSystemClock 34 25 { 35 public: 36 QwtSystemClock(); 37 virtual ~QwtSystemClock(); 38 26 public: 39 27 bool isNull() const; 40 28 … … 43 31 double elapsed() const; 44 32 45 private: 46 class PrivateData; 47 PrivateData *d_data; 33 private: 34 QElapsedTimer m_timer; 48 35 }; 49 36
Note:
See TracChangeset
for help on using the changeset viewer.
