title: Measuring Duration Of Service Fabric Actor Methods
body: <p>I wish to measure the time it takes for some of my Actor methods to execute. I plan to use OnPreActorMethodAsync and OnPostActorMethodAsync to log when these methods have begun and finished execution.</p>
  
  <p>However I also wish to measure the time it takes for these methods to execute. My original plan was to use an instance of StopWatch to begin timing in the OnPreActorMethodAsync class and stop in the OnPostActorMethodAsync class. However I'm unsure how I can accessthe same StopWatch instance in the second method. If there is a better way of doing this I would be very interested.  </p>
  
  <p>If anyone could point me in the right direction on this matter that would be great.</p>
  
  <p>Many Thanks</p>