I want to measure the time between fucnctions+ get the total time
I now that there is Stopwatch but what I know is that I can only get the time between start and stop with Elapsed , so on that way I can get the total time.
How can I get the time between functions? for ex. :
Stopwatch s= new Stopwatch();
s.Start();
Function1();
//here I want get the time of function1
Function2();
//here I want get the time of function2
Function3();
//here I want get the time of function3
//here I want get the time of total time
s.Stop();
If I restart the stopwatch between the function I will not have the total time. I don't want to apply more than 1 stopwatch
What can I do?