Class Chronometer
java.lang.Object
net.thevpc.common.time.Chronometer
- All Implemented Interfaces:
Serializable
- Author:
- taha.bensalah@gmail.com
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()longgetName()longlonggetTime()booleanbooleanbooleanlap()restart()restart chronometer and returns a stopped snapshot/copy of the currentrestart chronometer with new name and returns a stopped snapshot/copy of the current (with old name)resume()static Chronometerstart()static ChronometerstartNow()stop()suspend()toString()updateDescription(String desc)
-
Constructor Details
-
Chronometer
-
-
Method Details
-
start
-
start
-
copy
-
restart
restart chronometer and returns a stopped snapshot/copy of the current- Returns:
-
restart
restart chronometer with new name and returns a stopped snapshot/copy of the current (with old name)- Parameters:
newName-- Returns:
-
setName
-
updateDescription
-
getName
-
isStarted
public boolean isStarted() -
isStopped
public boolean isStopped() -
startNow
-
accumulate
-
lap
-
isSuspended
public boolean isSuspended() -
suspend
-
resume
-
stop
-
getStartTime
public long getStartTime() -
getEndDate
public long getEndDate() -
getDuration
-
getTime
public long getTime() -
toString
-
toString
-