The DocumentManager class.
public class DocumentManager
private OperationPerformanceCounterManager m_PerfMonCountersForCreateDocument;
string categoryName = "My Application Name";
// Initialize an OperationPerformanceCounterManager;
// the Create Document operation
categoryName, "Create Document");
public int CreateDocument(string name)
// Get the start time
var startTicks = DateTime.Now.Ticks;
// Perform the operation
var documentId = DoCreateDocument(name);
// After the operation completes, record how long it took
DateTime.Now.Ticks - startTicks);
private int DoCreateDocument(string name)
// Do some work
About the Author
Benjamin Day is a consultant and trainer specializing in software best practices using Microsoft tools. Ben’s main areas of emphasis include Team Foundation Server, Scrum, software testing, and software architecture. He is a Microsoft Visual Studio ALM MVP, a certified Scrum trainer via Scrum.org, and a speaker at conferences such as TechEd and Visual Studio Live! When not developing software, Ben’s been known to go running and sea kayaking in order to balance out his love of cheese, cured meats, and champagne. He can be contacted via www.benday.com.
User experience expert Debbie Levitt provided some saucy answers about an upcoming Visual Studio Live! presentation with an even saucier title: Fast Focus: WTF UX - UX Research and Design AMA.
Developers can now sign up for a private preview of enhanced chat capabilities coming to GitHub Copilot, the "AI pair programmer" that works in the Visual Studio 2022 IDE and in Visual Studio Code.
With advanced generative AI systems reshaping software development, Microsoft's Mads Kristensen detailed the many ways AI will improve coding in Visual Studio.
With Google recently releasing a generative AI-powered search bot called Bard to rival Microsoft's "new Bing" search experience, we put both to the test, feeding them identical questions about Visual Studio and .NET.
GPT-4, the advanced generative AI model from Microsoft partner OpenAI, is now powering the new GitHub Copilot X and the Azure OpenAI Service.
> More Webcasts