6#ifndef SWIFT_MISC_THREADED_TIMER_H
7#define SWIFT_MISC_THREADED_TIMER_H
40 QTimer m_updateTimer {
this };
void stopTimer()
Safely stop update time.
~CThreadedTimer()=default
Destructor.
CThreadedTimer(QObject *owner, const QString &name, bool singleShot=false)
Constructor.
void startTimer(std::chrono::milliseconds ms)
Start updating (start timer).
void timeout()
Timer timed out.
Free functions in swift::misc.
auto singleShot(int msec, QObject *target, F &&task)
Starts a single-shot timer which will call a task in the thread of the given object when it times out...
#define SWIFT_MISC_EXPORT
Export a class or function from the library.