CADI.Common.Util
Class StopWatch
java.lang.Object
CADI.Common.Util.StopWatch
public class StopWatch
- extends java.lang.Object
- Version:
- 1.0 2009/09/20
- Author:
- Group on Interactive Coding of Images (GICI)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
startTime
private long startTime
stopTime
private long stopTime
UNSTARTED
private static final int UNSTARTED
- See Also:
- Constant Field Values
RUNNING
private static final int RUNNING
- See Also:
- Constant Field Values
STOPPED
private static final int STOPPED
- See Also:
- Constant Field Values
SUSPENDED
private static final int SUSPENDED
- See Also:
- Constant Field Values
state
private int state
StopWatch
public StopWatch()
- Constructor.
start
public void start()
reset
public void reset()
stop
public void stop()
suspend
public void suspend()
resume
public void resume()
getTime
public long getTime()
- Returns:
getElapsedTimeMillis
public long getElapsedTimeMillis()
- Returns:
toString
public java.lang.String toString()
- public int getState() {
return state;
}
/**
- Overrides:
toString in class java.lang.Object
list
public void list(java.io.PrintStream out)
- Prints this Stop Watch out to the specified output
stream. This method is useful for debugging.
- Parameters:
out - an output stream.
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)