From 3bff0edd15c2f5a01ae10b21b6744f0364c48966 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Thu, 4 Jan 2018 13:43:50 -0800 Subject: [PATCH] Update StopWatch use and containers submodule for 2.078.0 --- containers | 2 +- src/dcd/server/main.d | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/containers b/containers index 2892cfc..0ed30c2 160000 --- a/containers +++ b/containers @@ -1 +1 @@ -Subproject commit 2892cfc1e7a205d4f81af3970cbb53e4f365a765 +Subproject commit 0ed30c2626270a18b420bc04143b7a9c2eea0f42 diff --git a/src/dcd/server/main.d b/src/dcd/server/main.d index 8f243bb..c669d12 100644 --- a/src/dcd/server/main.d +++ b/src/dcd/server/main.d @@ -22,7 +22,7 @@ import core.sys.posix.sys.stat; import std.algorithm; import std.array; import std.conv; -import std.datetime; +import std.datetime.stopwatch : AutoStart, StopWatch; import std.exception : enforce; import std.experimental.allocator; import std.experimental.allocator.mallocator; @@ -177,7 +177,7 @@ int main(string[] args) sw.stop(); info(cache.symbolsAllocated, " symbols cached."); - info("Startup completed in ", sw.peek().to!("msecs", float), " milliseconds."); + info("Startup completed in ", sw.peek().total!"msecs"(), " milliseconds."); // No relative paths version (Posix) chdir("/"); @@ -286,7 +286,7 @@ int main(string[] args) s.trySendResponse(findLocalUse(request, cache), "Couldnot find local usage"); sw.stop(); - info("Request processed in ", sw.peek().to!("msecs", float), " milliseconds"); + info("Request processed in ", sw.peek().total!"msecs"(), " milliseconds"); } return 0; }