org.apgrid.grpc.util
Class GrpcTimer

java.lang.Object
  extended byorg.apgrid.grpc.util.GrpcTimer

public class GrpcTimer
extends java.lang.Object

Provides the functions which measure the specified time.
You need to call start() at the start of measuring and need to call getElapsedTime() at the end of measuring.


Constructor Summary
GrpcTimer()
          Creates GrpcTimer object and starts to measure.
 
Method Summary
 double getElapsedTime()
          Stops timer and Gets the elapsed time.
 void start()
          Resets a timer and starts to measure.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrpcTimer

public GrpcTimer()
Creates GrpcTimer object and starts to measure.

Method Detail

getElapsedTime

public double getElapsedTime()
Stops timer and Gets the elapsed time.

Returns:
the elapsed time(in second).

start

public void start()
Resets a timer and starts to measure.