diff --git a/src/clock.hh b/src/clock.hh index 741c049c..b4138de0 100644 --- a/src/clock.hh +++ b/src/clock.hh @@ -8,7 +8,6 @@ namespace Kakoune using Clock = std::chrono::steady_clock; using TimePoint = Clock::time_point; -using DurationMs = std::chrono::milliseconds; } diff --git a/src/main.cc b/src/main.cc index 3ede4f1c..76e33576 100644 --- a/src/main.cc +++ b/src/main.cc @@ -658,8 +658,11 @@ int run_server(StringView session, StringView server_init, UnitTest::run_all_tests(); if (debug_flags & DebugFlags::Profile) + { + using namespace std::chrono; write_to_debug_buffer(format("running the unit tests took {} ms", - std::chrono::duration_cast(Clock::now() - start_time).count())); + duration_cast(Clock::now() - start_time).count())); + } GlobalScope::instance().options().get_local_option("readonly").set(flags & ServerFlags::ReadOnly);