You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
361 B
24 lines
361 B
|
|
#include "timer_service.h"
|
|
|
|
bool TimerService::_run = false;
|
|
int TimerService::_interval = 200;
|
|
QTimer TimerService::_timer;
|
|
|
|
void TimerService::start() {
|
|
if(_run){
|
|
|
|
}
|
|
_run = true;
|
|
_timer.start(_interval);
|
|
}
|
|
|
|
void TimerService::stop() {
|
|
_timer.stop();
|
|
}
|
|
|
|
TimerService *TimerService::getIns() {
|
|
// _timer->stop();
|
|
// return nullptr;
|
|
}
|