Does java have a class that represents a timer?
Posted
by Eric
on Stack Overflow
See other posts from Stack Overflow
or by Eric
Published on 2010-06-15T06:49:14Z
Indexed on
2010/06/15
6:52 UTC
Read the original article
Hit count: 143
java
|class-library
I'd like a timer class that allows me to call:
.start()
.getElapsedTime()
.stop()
.reset()
Does Java have such a class, or do I need to use my own (which I've already written).
From a best-practice point of view, I should use the Java class libraries classes if they exist, but I'm not sure whether this one does.
Can anyone give me a link to the javadoc for this class, if it exists?
© Stack Overflow or respective owner