Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_system_clock.h


Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (3 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_system_clock.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1212
    1313#include "qwt_global.h"
     14#include <qelapsedtimer.h>
    1415
    1516/*!
    16   \brief QwtSystemClock provides high resolution clock time functions.
     17   \brief QwtSystemClock provides high resolution clock time functions.
    1718
    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).
    2220
    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 */
    3223
    3324class QWT_EXPORT QwtSystemClock
    3425{
    35 public:
    36     QwtSystemClock();
    37     virtual ~QwtSystemClock();
    38 
     26  public:
    3927    bool isNull() const;
    4028
    … …  
    4331    double elapsed() const;
    4432
    45 private:
    46     class PrivateData;
    47     PrivateData *d_data;
     33  private:
     34    QElapsedTimer m_timer;
    4835};
    4936
Note: See TracChangeset for help on using the changeset viewer.