public class SimpleClock extends Object
Constructor and Description |
---|
SimpleClock() |
Modifier and Type | Method and Description |
---|---|
String |
getAndSet(String s) |
long |
getTime() |
void |
print(String s)
prints time needed
|
void |
printAndSet()
prints time needed and resets the clock
|
void |
printAndSet(String s)
prints time needed and resets the clock
|
void |
reset()
resets the clock
|
void |
setTime()
resets the clock
|
public SimpleClock()
public void printAndSet()
public void printAndSet(String s)
s
- String for printingpublic void setTime()
public void reset()
public long getTime()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann