Package de.mhus.lib.core
Class MStopWatch
- java.lang.Object
-
- de.mhus.lib.core.MLog
-
- de.mhus.lib.core.lang.MObject
-
- de.mhus.lib.core.jmx.JmxObject
-
- de.mhus.lib.core.jmx.MJmx
-
- de.mhus.lib.core.MStopWatch
-
- All Implemented Interfaces:
ILog,JmxObjectMBean,MNlsProvider,Nls
- Direct Known Subclasses:
JmxStopWatch
public class MStopWatch extends MJmx
-
-
Field Summary
-
Fields inherited from class de.mhus.lib.core.jmx.JmxObject
jmxFixName, jmxName, jmxPackage, jmxType
-
-
Constructor Summary
Constructors Constructor Description MStopWatch()MStopWatch(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCount()longgetCurrentMinutes()StringgetCurrentMinutesAsString()longgetCurrentSeconds()longgetCurrentTime()StringgetCurrentTimeAsString()StringgetName()intgetStatus()StringgetStatusAsString()booleanisRunning()MStopWatchreset()MStopWatchstart()MStopWatchstop()StringtoString()-
Methods inherited from class de.mhus.lib.core.jmx.MJmx
jmxRegister
-
Methods inherited from class de.mhus.lib.core.jmx.JmxObject
createJmxObjectName, getJmxName, getJmxObjectName, getJmxPackage, getJmxType, isJmxFixName, isJmxRegistered, setJmxName, setJmxPackage, setJmxProxy, setJmxRegistered
-
-
-
-
Constructor Detail
-
MStopWatch
public MStopWatch()
-
MStopWatch
public MStopWatch(String name)
-
-
Method Detail
-
start
public MStopWatch start()
-
stop
public MStopWatch stop()
-
getCurrentTime
public long getCurrentTime()
-
reset
public MStopWatch reset()
-
getStatus
public int getStatus()
-
isRunning
public boolean isRunning()
-
getStatusAsString
public String getStatusAsString()
-
getCurrentSeconds
public long getCurrentSeconds()
-
getCurrentMinutes
public long getCurrentMinutes()
-
getCurrentMinutesAsString
public String getCurrentMinutesAsString()
-
getCurrentTimeAsString
public String getCurrentTimeAsString()
-
getName
public String getName()
-
getCount
public long getCount()
-
-