com.avalara.avatax.services.base
Class Timer

java.lang.Object
  extended by com.avalara.avatax.services.base.Timer

public class Timer
extends java.lang.Object

Created by IntelliJ IDEA. User: amit.raval Date: Nov 6, 2007 Time: 12:00:17 PM To change this template use File | Settings | File Templates. Time class is responsible to send ClientMetrics to the server for time taken to server a request on client side


Constructor Summary
Timer()
           
 
Method Summary
 long getTotal()
           
 void reset()
           
 void start()
          Starts the clock
 void stop(java.lang.Object svc, java.lang.Object result)
          Stops the clock and find out the difference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
Method Detail

start

public void start()
Starts the clock


stop

public void stop(java.lang.Object svc,
                 java.lang.Object result)
Stops the clock and find out the difference

Parameters:
svc - Expected TaxSvcSoapStub object or AddressSvcSoapStub
result - Expected com.avalara.avatax.services.tax.GetTaxResult or com.avalara.avatax.services.address.ValidateResult

reset

public void reset()

getTotal

public long getTotal()