----- Original Message ----- 
From: "BAZLEY, Sebastian" <[EMAIL PROTECTED]>
To: "'JMeter Developers List'" <[EMAIL PROTECTED]>
Sent: Friday, December 19, 2003 1:02 PM
Subject: Changes to SampleResult time stamp handling


> I've updated SampleResult to add sampleStart and sampleEnd methods.
> 
> The idea is that samplers will:
> - create the sample result
> - do any necessary initilisation
> - call sampleStart
> - perform the actual work
> - call sampleEnd
> 
> [For samplers that do the sample in stages, such as LDAP, there are
> samplePause/sampleResume methods as well]

In the end, Pause/resume were not needed for LDAP, but I left the methods in case.

> I intent to deprecate (or even remove) the setTime() method.

setTimeStamp has been removed, as it should only have been used internally.

setTime has been deprecated - it will set the endTime to now, and startTime to 
now-elapsed.
This should correspond with how it was being used (the endtime would actually have 
been set by JMeter a bit later).

> 
> These changes mean that it will eventually be relatively easy to change to a
> more accurate timer, as the timing is all in one place. [Would need to add a
> getTimeNanosecs() method or similar.]
> 
> It also means that it will be possible to readily switch to storing
> timestamps as the start of a sample rather than the end. I propose to do
> this using a jmeter property (defaulting to current behaviour).

This has been done.

> 
> Otherwise users scripts might break (e.g. we use some Perl scripts that
> would probably need changing). 
> 
> I hope to be able to finish the changes over the next day or so.

Code is now in CVS.

Seems to work OK with simple redirects and full page downloads

S

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to