Remove DurationMs and slight code refactor
This commit is contained in:
parent
ef8fdd664f
commit
09e6518545
|
@ -8,7 +8,6 @@ namespace Kakoune
|
||||||
|
|
||||||
using Clock = std::chrono::steady_clock;
|
using Clock = std::chrono::steady_clock;
|
||||||
using TimePoint = Clock::time_point;
|
using TimePoint = Clock::time_point;
|
||||||
using DurationMs = std::chrono::milliseconds;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -658,8 +658,11 @@ int run_server(StringView session, StringView server_init,
|
||||||
UnitTest::run_all_tests();
|
UnitTest::run_all_tests();
|
||||||
|
|
||||||
if (debug_flags & DebugFlags::Profile)
|
if (debug_flags & DebugFlags::Profile)
|
||||||
|
{
|
||||||
|
using namespace std::chrono;
|
||||||
write_to_debug_buffer(format("running the unit tests took {} ms",
|
write_to_debug_buffer(format("running the unit tests took {} ms",
|
||||||
std::chrono::duration_cast<DurationMs>(Clock::now() - start_time).count()));
|
duration_cast<milliseconds>(Clock::now() - start_time).count()));
|
||||||
|
}
|
||||||
|
|
||||||
GlobalScope::instance().options().get_local_option("readonly").set<bool>(flags & ServerFlags::ReadOnly);
|
GlobalScope::instance().options().get_local_option("readonly").set<bool>(flags & ServerFlags::ReadOnly);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user