![]() |
JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
|
This class implements a high resolution timer capable of measuring time intervals with a resolution of some microseconds. More...
#include <jkqtphighrestimer.h>
Public Member Functions | |
| JKQTPHighResTimer () | |
| class constructor. | |
| ~JKQTPHighResTimer () | |
| class destructor | |
| double | getTime () |
| get the time since the last call of start() in microseconds | |
| void | start () |
| start the timer | |
Protected Attributes | |
| double | freq |
| internal: timer frequency | |
| std::chrono::system_clock::time_point | last |
This class implements a high resolution timer capable of measuring time intervals with a resolution of some microseconds.
QueryPerformanceCounter() and QueryPerformanceFrequency() ). So if you want to use this class on non-win32 systems you will have to find a way to implement it for your system!!!The timer works very simple:
![\[ \Delta t=\frac{N_{\mbox{now}}-N_{\mbox{start}}}{\mbox{\texttt{QueryPerformanceFrequency()}}}\cdot 10^{6} \]](form_0.png)
| JKQTPHighResTimer::JKQTPHighResTimer | ( | ) |
class constructor.
| JKQTPHighResTimer::~JKQTPHighResTimer | ( | ) |
class destructor
| double JKQTPHighResTimer::getTime | ( | ) |
get the time since the last call of start() in microseconds
| void JKQTPHighResTimer::start | ( | ) |
start the timer
|
protected |
internal: timer frequency
|
protected |