vdaburon opened a new pull request, #6356: URL: https://github.com/apache/jmeter/pull/6356
Corresponding to the issue (new feature): https://github.com/apache/jmeter/issues/6319 ## Description Add a new unmodifiable JMeter Thread variable named "__jmv_THREAD_START_TIME_ITERATION" ## Motivation and Context It is interesting to know the start timestamp of a thread iteration to calculate cadences or pacing. This variable can also be used to help other Thread Groups calculate cadences (E.g : Concurrency Thread Group or may be Open Model Thread Group) ## How Has This Been Tested? Yes, add a groovy sampler first sampler of the thread group and compute the delta between the value in the variable __jmv_THREAD_START_TIME_ITERATION and the current time System.currentTimeMillis() in the groovy sampler. Groovy code =========================== long currentTime = System.currentTimeMillis(); long startThreadIter = Long.parseLong(vars.get("__jmv_THREAD_START_TIME_ITERATION")); long delta = currentTime - startThreadIter; return delta; =========================== Results 0 or 1 ms ## Screenshots (if appropriate): ## Types of changes - New feature ## Checklist: - [x ] My code follows the [code style][style-guide] of this project. - [ x] I have updated the documentation accordingly. Add new variable __jmv_THREAD_START_TIME_ITERATION in the documentation : functions.xml, section 6 Pre-defined Variables [style-guide]: https://wiki.apache.org/jmeter/CodeStyleGuidelines -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org