Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6998813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:27:35+00:00 2026-05-27T20:27:35+00:00

I need to analyze the Performance overhead of my programmed logic using C# debugger.

  • 0

I need to analyze the Performance overhead of my programmed logic using C# debugger. So I need to compare two logics in my code. I dont want to install any add-ons like Analyze into my VisualStudio. I want to analyze the module by writing special functions. Do we have any such predefined functions available in C# ?
I need all the options available for testing a module for being GOOD(by good i mean it takes shortest time to execute)
FYI I use VisualStudio 2010 Professional edition.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:27:36+00:00Added an answer on May 27, 2026 at 8:27 pm

    If you just want to measure the time a function needs to execute, you can use the Stopwatch class.

    Sample:

    Stopwatch stopWatch = new Stopwatch();
    stopWatch.Start();
    CallYourFunction();
    stopWatch.Stop();
    // Get the elapsed time as a TimeSpan value.
    TimeSpan ts = stopWatch.Elapsed;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application I need to analyze. I have the source code here.
For a project, I need to analyze the differences in development time between two
I have a crash dump file that I need to analyze using windbg to
I am using Intel VTune Amplifier XE 2011 to analyze the performance of my
I need to performance analyse some real-time code on Windows. I can't use any
I have a huge file that I need to analyze. What I want to
I want to analyze assemblies using reflection. Specifically, I want to find out if
I'm working on a project where I need to analyze Apache logs using SSAS.
I need to write a program to analyze the performance of computer systems and
I need to analyze a users' post and categorize it. For example: I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.