org.argouml.util.logging
Class SimpleTimer
java.lang.Object
org.argouml.util.logging.SimpleTimer
- public class SimpleTimer
- extends Object
This class makes it easy to get the time between two or several
points in the code.
name
private String name
points
private Vector points
labels
private Vector labels
SimpleTimer
public SimpleTimer(String n)
- The constructor. Creates a simple timer with given name.
- Parameters:
n
- the name
mark
public void mark()
- Mark (Store) the current time.
mark
public void mark(String label)
- Mark (Store) the current time.
- Parameters:
label
- the mark will be labelled with this string
result
public Enumeration result()
- Returns a string of formatted distances.
- Returns:
- a string representing the results
toString
public String toString()
- See Also:
Object.toString()