API http://jmeter.apache.org/api/org/apache/jmeter/samplers/SampleResult.html
setSampleLabel
public void setSampleLabel(String label)
sampleStart
public void sampleStart()
Record the start time of a sample//记录开始时间
setSuccessful
public void setSuccessful(boolean success)
Sets the successful attribute of the SampleResult object.//设置successful属性
Parameters:
success
- the new successful value
sampleEnd
public void sampleEnd()
Record the end time of a sample and calculate the elapsed time//记录结束时间并计算时间