public class StopWatch
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
RUNNING |
private long |
startTime |
private int |
state |
private static int |
STOPPED |
private long |
stopTime |
private static int |
SUSPENDED |
private static int |
UNSTARTED |
Constructor and Description |
---|
StopWatch()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getElapsedTimeMillis() |
long |
getTime() |
void |
list(java.io.PrintStream out)
Prints this Stop Watch out to the specified output
stream.
|
void |
reset() |
void |
resume() |
void |
start() |
void |
stop() |
void |
suspend() |
java.lang.String |
toString()
public int getState() {
return state;
}
/**
|
private long startTime
private long stopTime
private static final int UNSTARTED
private static final int RUNNING
private static final int STOPPED
private static final int SUSPENDED
private int state
public void start()
public void reset()
public void stop()
public void suspend()
public void resume()
public long getTime()
public long getElapsedTimeMillis()
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
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)