c# timer for functions

Posted on 2011-10-27
Last Modified: 2012-05-12
I am having some issues with some code taking too long.  Is there a simple way to time functions so that I can see where the bottlenecks are?  I am working on a console application and don't mind outputting to a text file.

Question by:jackjohnson44
    LVL 43

    Accepted Solution

    If you have visual studio then what version do you have?  The more expensive ones have a profiler built in -  a tool that will time functions and give you a tremendous ammount of feedback.
    LVL 4

    Assisted Solution

    by:Ariful Ambia
    You can print some text after and before major process with time stamping which will give you idea on which process is taking more time

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now