Re: [JMeter] JUnit sampler sample time changes

sebb <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.devel
Message-ID <[email protected]>
On 31 March 2011 19:41, Ben Cuthbert <[email protected]> wrote:
> All
>
> I have been looking over the code in the JUnitSampler code under the jmeter source.
> I would like to make a change to use nanoTime() rather than milliseconds.

Why?

> I can see in the AnnotatedTestCase there is an elapsed time. But I can't see how it
> is returned to a results table. Any ideas?

The time in AnnotatedTestCase is only used for reporting timeout errors.

The actual sample time is calculated using SampleResult.sampleStart()
and sampleEnd() which already use nanoTime().
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.