sebb        2003/12/19 06:41:12

  Modified:    src/core/org/apache/jmeter/samplers SampleResult.java
  Log:
  Deprecate setTime(); ensure time is initialised to 0
  
  Revision  Changes    Path
  1.18      +5 -2      
jakarta-jmeter/src/core/org/apache/jmeter/samplers/SampleResult.java
  
  Index: SampleResult.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/samplers/SampleResult.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- SampleResult.java 19 Dec 2003 02:26:39 -0000      1.17
  +++ SampleResult.java 19 Dec 2003 14:41:12 -0000      1.18
  @@ -120,7 +120,7 @@
       private boolean success;
       private Set files;
       private String dataEncoding;
  -    private long time;
  +    private long time = 0;
       private boolean stopThread = false; //Should thread terminate?
        private boolean stopTest = false;   //Should test terminate?
   
  @@ -248,6 +248,7 @@
   
       /**
        * Set the time this sample took to occur.
  +     * @deprecated to be removed - use sampleStart() and sampleEnd() instead
        */
       public void setTime(long t)
       {
  @@ -298,6 +299,8 @@
   
       /**
        * Get the time it took this sample to occur.
  +     * @return elapsed time in milliseonds
  +     * 
        */
       public long getTime()
       {
  
  
  

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

Reply via email to