[gui] Reduce sleep
This commit is contained in:
parent
a2fb124df6
commit
7be4d7db35
@ -428,13 +428,14 @@ void f1x::openauto::autoapp::ui::MainWindow::hideRearCamBG()
|
||||
|
||||
void f1x::openauto::autoapp::ui::MainWindow::showTime()
|
||||
{
|
||||
|
||||
QTime time=QTime::currentTime();
|
||||
QString time_text=time.toString("hh : mm : ss");
|
||||
ui_->Digital_clock->setText(time_text);
|
||||
|
||||
using namespace std::this_thread; // sleep_for
|
||||
using namespace std::chrono; // milliseconds
|
||||
sleep_for(milliseconds(125));
|
||||
sleep_for(milliseconds(5));
|
||||
|
||||
/**if (configuration_->showClock()) {
|
||||
if (ui_->Digital_clock->isVisible() == true) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user