title: Jmeter: Beanshell code to get response time of all the Sampler(sum of) under one Transaction controller
body: <p>I need to capture the response time Transaction controller i.e; the sum up response time of  Sample A and Sample B.</p>
  
  <p>Instead of prev.getTime(), do we have any function which will return the transaction response time of a Transactioncontroller ; sum of all the individual sampler under it.<img src="https://i.stack.imgur.com/ckEmF.png" alt="enter image description here"> </p>
  
  <p>Currently if I give the prev.getTime()  under transaction controller  tree, it will display the individual  response time of  Sample A and Sample B.</p>