summaryrefslogtreecommitdiff
path: root/src/hook_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-07-20 08:49:04 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-07-24 21:25:05 +0100
commit46a15534c5d012908eee4975a21dd0d53179b2b3 (patch)
tree6a2879d7601b6e6ef109c462b0338bcabe51a35f /src/hook_manager.cc
parente391f93a9e1dbf7e087a34bd0b040ef348cce506 (diff)
Introduce chrono.hh
Diffstat (limited to 'src/hook_manager.cc')
-rw-r--r--src/hook_manager.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/hook_manager.cc b/src/hook_manager.cc
index 30f90ae3..be940482 100644
--- a/src/hook_manager.cc
+++ b/src/hook_manager.cc
@@ -1,5 +1,6 @@
#include "hook_manager.hh"
+#include "clock.hh"
#include "containers.hh"
#include "context.hh"
#include "buffer_utils.hh"
@@ -7,8 +8,6 @@
#include "face_registry.hh"
#include "regex.hh"
-#include <chrono>
-
namespace Kakoune
{
@@ -61,9 +60,6 @@ void HookManager::run_hook(StringView hook_name,
m_running_hooks.emplace_back(hook_name, param);
auto pop_running_hook = on_scope_end([this]{ m_running_hooks.pop_back(); });
- using Clock = std::chrono::steady_clock;
- using TimePoint = Clock::time_point;
-
const DebugFlags debug_flags = context.options()["debug"].get<DebugFlags>();
const bool profile = debug_flags & DebugFlags::Profile;
auto start_time = profile ? Clock::now() : TimePoint{};