'Swagger-Net Display Request Duration

I'm using Swagger-Net to be able to get Swagger documentation to my API without much hassle. It's going well, but I'm trying to configure it to display execution runtime of my API methods and I'm unable to do it.

I've seen a DisplayRequestDuration() inside a UseSwaggerUI, but in Swagger-Net I don't have that method. Also I tried the c.AdditionalSettings.Add("displayRequestDuration ", true) approach, but nothing.

Anyone knows how to add DisplayRequestDuration specifically to Swagger-Net?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source