web: before compile & fix marathon
This commit is contained in:
@@ -124,9 +124,9 @@ const Handler = struct {
|
||||
const self: *Handler = @ptrCast(@alignCast(ctx));
|
||||
|
||||
const time_ns = self.timer.read();
|
||||
const time_us = time_ns / std.time.ns_per_us;
|
||||
const time_us_ceil = (time_ns + std.time.ns_per_us - 1) / std.time.ns_per_us;
|
||||
|
||||
std.log.info("{s} {s} [{d}]", .{ @tagName(self.route.method), self.route.pathname, time_us });
|
||||
std.log.info("{s} {s} (<={} [µs])", .{ @tagName(self.route.method), self.route.pathname, time_us_ceil });
|
||||
|
||||
self.allocator.destroy(self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user