From 4f27f075d715c1c386d0b08ca918ea4804271e2a Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Sun, 9 Oct 2022 00:38:05 +0200 Subject: [PATCH] revert timer removal --- src/Server.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Server.zig b/src/Server.zig index 95a9f9c..3842236 100644 --- a/src/Server.zig +++ b/src/Server.zig @@ -2382,12 +2382,12 @@ pub fn processJsonRpc(server: *Server, writer: anytype, json: []const u8) !void .shutdown => return try sendErrorResponse(writer, server.arena.allocator(), .InvalidRequest, "server received a request after shutdown!"), } - // const start_time = std.time.milliTimestamp(); + const start_time = std.time.milliTimestamp(); defer { // makes `zig build test` look nice if (!zig_builtin.is_test and !std.mem.eql(u8, method, "shutdown")) { - // const end_time = std.time.milliTimestamp(); - // log.debug("Took {}ms to process method {s}", .{ end_time - start_time, method }); + const end_time = std.time.milliTimestamp(); + log.debug("Took {}ms to process method {s}", .{ end_time - start_time, method }); } }