cc_timer/cc_frm_clock: allow use of milisecond intervals

Should be easier and more flexible to handle without nano parameter,
some reworkes in other classes and thread handlings are required.
This commit is contained in:
2020-01-05 21:17:59 +01:00
parent 06aec40a25
commit b1f9c3c7f3
10 changed files with 233 additions and 239 deletions

View File

@@ -841,11 +841,12 @@ bool CCDraw::paintBlink(CComponentsTimer* Timer)
return false;
}
bool CCDraw::paintBlink(const int& interval, bool is_nano)
bool CCDraw::paintBlink(const int64_t& interval)
{
if (cc_draw_timer == NULL){
cc_draw_timer = new CComponentsTimer(interval, is_nano);
cc_draw_timer = new CComponentsTimer(interval);
cc_draw_timer->setThreadName(__func__);
cc_draw_timer->startTimer();
}
return paintBlink(cc_draw_timer);