Jetski5822
Programmer
Hi all, i was wondering if its possible to 'time' every single line of code then output the the results as in a profiler i.e.
Time Line of code
22ms If... etc;
32ms i++;
.... ....
i know you can time a loop or whatever through the Start -> do loop -> stop proceedure i.e
Start timer
Do....
....
...
Stop timer
etc
But im looking for a method to time each and every line of code in a program, either at compile time or at run time.
hope someone has an idea on how to do this, as i am looking for a decent code exampe to start my project, as im not entirely sure where to start.
I dont mind if the results are in C# or VB.net
thanks all for your help
Nick
Time Line of code
22ms If... etc;
32ms i++;
.... ....
i know you can time a loop or whatever through the Start -> do loop -> stop proceedure i.e
Start timer
Do....
....
...
Stop timer
etc
But im looking for a method to time each and every line of code in a program, either at compile time or at run time.
hope someone has an idea on how to do this, as i am looking for a decent code exampe to start my project, as im not entirely sure where to start.
I dont mind if the results are in C# or VB.net
thanks all for your help
Nick