Use more adaptive time formatting because many requests finish in 0 milliseconds

This commit is contained in:
Per Nordlöw 2021-10-10 12:32:55 +02:00 committed by Petar Kirov
parent 5aba1b1b54
commit e343e73d33
1 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ int runServer(string[] args)
sw.stop();
info(cache.symbolsAllocated, " symbols cached.");
info("Startup completed in ", sw.peek().total!"msecs"(), " milliseconds.");
info("Startup completed in ", sw.peek);
// No relative paths
version (Posix) chdir("/");
@ -310,7 +310,7 @@ int runServer(string[] args)
}
sw.stop();
info("Request processed in ", sw.peek().total!"msecs"(), " milliseconds");
info("Request processed in ", sw.peek);
}
return 0;
}