QwtSystemClock.3 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. .TH "QwtSystemClock" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtSystemClock \- \fBQwtSystemClock\fP provides high resolution clock time functions\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_system_clock\&.h>\fP
  11. .SS "Public Member Functions"
  12. .in +1c
  13. .ti -1c
  14. .RI "\fBQwtSystemClock\fP ()"
  15. .br
  16. .RI "Constructs a null clock object\&. "
  17. .ti -1c
  18. .RI "virtual \fB~QwtSystemClock\fP ()"
  19. .br
  20. .RI "Destructor\&. "
  21. .ti -1c
  22. .RI "bool \fBisNull\fP () const"
  23. .br
  24. .ti -1c
  25. .RI "void \fBstart\fP ()"
  26. .br
  27. .ti -1c
  28. .RI "double \fBrestart\fP ()"
  29. .br
  30. .ti -1c
  31. .RI "double \fBelapsed\fP () const"
  32. .br
  33. .in -1c
  34. .SH "Detailed Description"
  35. .PP
  36. \fBQwtSystemClock\fP provides high resolution clock time functions\&.
  37. Sometimes the resolution offered by QTime ( millisecond ) is not accurate enough for implementing time measurements ( f\&.e\&. sampling )\&. \fBQwtSystemClock\fP offers a subset of the QTime functionality using higher resolution timers ( if possible )\&.
  38. .PP
  39. Precision and time intervals are multiples of milliseconds (ms)\&.
  40. .PP
  41. ( \fBQwtSystemClock\fP is obsolete since Qt 4\&.8 as QElapsedTimer offers the same precision )
  42. .PP
  43. \fBNote\fP
  44. .RS 4
  45. The implementation uses high-resolution performance counter on Windows, mach_absolute_time() on the Mac or POSIX timers on other systems\&. If none is available it falls back on QTimer\&.
  46. .RE
  47. .PP
  48. .SH "Member Function Documentation"
  49. .PP
  50. .SS "double QwtSystemClock::elapsed () const"
  51. .PP
  52. \fBReturns\fP
  53. .RS 4
  54. Number of milliseconds that have elapsed since the last time \fBstart()\fP or \fBrestart()\fP was called or 0\&.0 for null clocks\&.
  55. .RE
  56. .PP
  57. .SS "bool QwtSystemClock::isNull () const"
  58. .PP
  59. \fBReturns\fP
  60. .RS 4
  61. true if the clock has never been started\&.
  62. .RE
  63. .PP
  64. .SS "double QwtSystemClock::restart ()"
  65. Set the start time to the current time
  66. .PP
  67. \fBReturns\fP
  68. .RS 4
  69. Time, that is elapsed since the previous start time\&.
  70. .RE
  71. .PP
  72. .SS "void QwtSystemClock::start ()"
  73. Sets the start time to the current time\&.
  74. .SH "Author"
  75. .PP
  76. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.