title: Time duration,time start and time end of a method in C#
body: <p>how can I record the time duration, time start and time end of a method once it was executed using c#? </p>
  
  <p>for example, I click a button and it will do something. Once it start, I'll get the start time, then when the execution is done, I'll get the time end and also the duration of time it take to finish.</p>