diff options
Diffstat (limited to 'lib/status_handler.cpp')
-rw-r--r-- | lib/status_handler.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/status_handler.cpp b/lib/status_handler.cpp deleted file mode 100644 index 5fb80161..00000000 --- a/lib/status_handler.cpp +++ /dev/null @@ -1,29 +0,0 @@ -// ************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: http://www.gnu.org/licenses/gpl.html * -// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved * -// ************************************************************************** - -#include "status_handler.h" -//#include <wx/app.h> -#include <zen/tick_count.h> - -using namespace zen; - - -namespace -{ -const std::int64_t TICKS_UPDATE_INTERVAL = UI_UPDATE_INTERVAL* ticksPerSec() / 1000; -TickVal lastExec = getTicks(); -}; - -bool zen::updateUiIsAllowed() -{ - const TickVal now = getTicks(); //0 on error - if (dist(lastExec, now) >= TICKS_UPDATE_INTERVAL) //perform ui updates not more often than necessary - { - lastExec = now; - return true; - } - return false; -} |