You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
in src/Microsoft.AspNet.Hosting/Internal/HostingLoggerExtensions.cs:
public static void RequestFinished(this ILogger logger, HttpContext httpContext, int startTimeInTicks, int currentTick)
in src/Microsoft.AspNet.Hosting/Internal/HostingApplication.cs:
var currentTick = Environment.TickCount;
_logger.RequestFinished(httpContext, context.StartTick, currentTick);
Environment.TickCount is non-high-precision in most platforms, about 15ms resolution, as you're seeing. In some cases DateTime.Ticks can be higher precision, but that is implementation dependent.
Could also burn a Stopwatch here every time, but I don't know if the overhead is worth it. DateTime.Ticks does seem like the better compromise.
And the server is too fast for it to be that imprecise.
The text was updated successfully, but these errors were encountered: