The correct solution would be storing your *dt* into a JMeter Variable like:


> vars.put('dt', dt as String)

then you can declate this *dt* as a  Sample Variable
<https://jmeter.apache.org/usermanual/listeners.html#sample_variables>   and 
generate a custom graph over
<https://jmeter.apache.org/usermanual/generating-dashboard.html#customs_graphs> 
time out of it

If it's too complex you can update your JSR223 Sampler execution time from
the JSR223 PostProcessor like:


> prev.elapsedTime = vars.getObject('dt') as long

See  Top 8 JMeter Java Classes You Should Be Using with Groovy
<https://www.blazemeter.com/blog/top-8-jmeter-java-classes-you-should-be-using-with-groovy>
  
article for more information regarding what these *vars* and *prev* stand
for and remember each time you bypass JMeter limitation using reflection
somewhere somehow a kitten dies.



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to