org.exoplatform.social.common.service.utils
Class LogWatch

java.lang.Object
  extended by org.exoplatform.social.common.service.utils.LogWatch
All Implemented Interfaces:
Cloneable

public class LogWatch
extends Object
implements Cloneable


Constructor Summary
LogWatch()
           
LogWatch(long startTime, long elapsedTime, String process, String message)
           
LogWatch(String tag)
           
LogWatch(String tag, String message)
           
 
Method Summary
 LogWatch clone()
           
 long elapsedTime()
           
 long elapsedTime(TimeUnit timeUnit)
           
 boolean equals(Object o)
           
 long getElapsedTime()
           
 String getMessage()
           
 long getStartTime()
           
 int hashCode()
           
 void start()
           
 String stop()
           
 String toString()
           
 String toString(long value, TimeUnit timeUnit)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogWatch

public LogWatch()

LogWatch

public LogWatch(String tag)

LogWatch

public LogWatch(String tag,
                String message)

LogWatch

public LogWatch(long startTime,
                long elapsedTime,
                String process,
                String message)
Method Detail

start

public void start()

getStartTime

public long getStartTime()

elapsedTime

public long elapsedTime()

getElapsedTime

public long getElapsedTime()

elapsedTime

public long elapsedTime(TimeUnit timeUnit)

stop

public String stop()

getMessage

public String getMessage()

toString

public String toString()
Overrides:
toString in class Object

clone

public LogWatch clone()
Overrides:
clone in class Object

toString

public String toString(long value,
                       TimeUnit timeUnit)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.