swift
Signals | Public Member Functions | List of all members
swift::misc::CThreadedTimer Class Reference

Thread-safe timer class. More...

Inheritance diagram for swift::misc::CThreadedTimer:
[legend]

Signals

void timeout ()
 

Public Member Functions

 CThreadedTimer (QObject *owner, const QString &name, bool singleShot=false)
 
 ~CThreadedTimer ()=default
 Destructor.
 
void startTimer (std::chrono::milliseconds ms)
 Start updating (start timer) More...
 
void stopTimer ()
 Safely stop update time. More...
 

Detailed Description

Thread-safe timer class.

Definition at line 17 of file threadedtimer.h.

Member Function Documentation

◆ startTimer()

void swift::misc::CThreadedTimer::startTimer ( std::chrono::milliseconds  ms)

Start updating (start timer)

Remarks
This function is thread safe.

Definition at line 19 of file threadedtimer.cpp.

◆ stopTimer()

void swift::misc::CThreadedTimer::stopTimer ( )

Safely stop update time.

Remarks
This function is thread safe.

Definition at line 36 of file threadedtimer.cpp.


The documentation for this class was generated from the following files: