summaryrefslogtreecommitdiff
path: root/src/shared/util.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-02-16 18:57:38 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-02-18 17:25:05 -0500
commitd3fe9ff1faed52da8f647d9294e9ce371b0361e4 (patch)
tree18aee61a71ae07a26d5746a36e48dfc77319cb0d /src/shared/util.cpp
parent528fa988b54342d3d5372ecf9613b60fc7287613 (diff)
moved TimeThis to uibase
fixed progress bar
Diffstat (limited to 'src/shared/util.cpp')
-rw-r--r--src/shared/util.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/shared/util.cpp b/src/shared/util.cpp
index 74e386a3..483b36a9 100644
--- a/src/shared/util.cpp
+++ b/src/shared/util.cpp
@@ -382,26 +382,6 @@ void checkDuplicateShortcuts(const QMenu& m)
} // namespace MOShared
-TimeThis::TimeThis(QString what)
- : m_what(std::move(what)), m_start(Clock::now())
-{
-}
-
-TimeThis::~TimeThis()
-{
- using namespace std::chrono;
-
- const auto end = Clock::now();
- const auto d = duration_cast<milliseconds>(end - m_start).count();
-
- if (m_what.isEmpty()) {
- log::debug("{} ms", d);
- } else {
- log::debug("{} {} ms", m_what, d);
- }
-}
-
-
static bool g_exiting = false;
static bool g_canClose = false;