|
Krita Source Code Documentation
|
#include <kis_latency_tracker.h>
Inheritance diagram for KisLatencyTracker:Public Member Functions | |
| KisLatencyTracker (int windowSize=500) | |
| virtual void | push (qint64 timestamp) override |
Public Member Functions inherited from KisScalarTracker< qint64 > | |
| KisScalarTracker (const QString &name, int windowSize=500) | |
| virtual | ~KisScalarTracker () |
Public Member Functions inherited from KisShared | |
| bool | deref () |
| bool | ref () |
| int | refCount () |
| QAtomicInt * | sharedWeakReference () |
Protected Member Functions | |
| virtual qint64 | currentTimestamp () const =0 |
Protected Member Functions inherited from KisScalarTracker< qint64 > | |
| virtual QString | format (qint64 mean, qint64 variance, qint64 max) |
| virtual void | print (const QString &message) |
Protected Member Functions inherited from KisShared | |
| KisShared () | |
| ~KisShared () | |
KisLatencyTracker tracks the time it takes events to reach a certain point in the program.
Definition at line 136 of file kis_latency_tracker.h.
| KisLatencyTracker::KisLatencyTracker | ( | int | windowSize = 500 | ) |
Create a tracker with the given window size.
| window | The maximum number of elements to take into account for calculation of max, mean and variance values. |
Definition at line 9 of file kis_latency_tracker.cpp.
|
protectedpure virtual |
Implemented in KisInputManager::Private::TabletLatencyTracker.
|
overridevirtual |
Register that an event with the given timestamp has arrived just now.
| timestamp | Timestamp of the event that just arrived (the difference to the current time is the latency). |
Reimplemented from KisScalarTracker< qint64 >.
Definition at line 14 of file kis_latency_tracker.cpp.
References currentTimestamp(), and KisScalarTracker< T >::push().