Class AbstractTaskMonitor.MonChronometer
java.lang.Object
net.thevpc.common.mon.AbstractTaskMonitor.MonChronometer
- All Implemented Interfaces:
Serializable
- Enclosing class:
AbstractTaskMonitor
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()longlonggetName()longbooleanbooleanbooleanlonglap()reset()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()start()stop()suspend()updateDescription(String desc)
-
Constructor Details
-
MonChronometer
public MonChronometer() -
MonChronometer
-
-
Method Details
-
reset
-
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:
-
updateDescription
-
getName
-
setName
-
isStarted
public boolean isStarted() -
isStopped
public boolean isStopped() -
start
-
accumulate
-
lap
public long lap() -
isSuspended
public boolean isSuspended() -
suspend
-
resume
-
stop
-
getStartTime
public long getStartTime() -
getEndDate
public long getEndDate() -
getDuration
public long getDuration()
-