protected override void Generate(IMethodVariables variables, GeneratedMethod method, IMethodSourceWriter writer, Action next) { var stopwatchVariable = variables.FindVariable(typeof(Stopwatch)); writer.WriteLine($"{stopwatchVariable}.Stop();"); writer.Write( LogFrame.Information( _operationFinishedLogEvent, "Operation {OperationName} finished in {TotalMilliseconds}ms", ReflectionUtilities.PrettyTypeName(this._operationType), stopwatchVariable.GetProperty(nameof(Stopwatch.Elapsed)).GetProperty(nameof(TimeSpan.TotalMilliseconds)))); }