public void Stop() { _sw.Stop(); var endTime = DateTime.Now; _logDetail.AdditionalInfo.Add("Stopped", endTime.ToString("HH:mm:ss.fff")); _logDetail.ElapsedMilliseconds = _sw.ElapsedMilliseconds; _perfLogger.WriteLog(_logDetail); }