org.argouml.util.logging
Class SimpleTimer

java.lang.Object
  extended byorg.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.


Field Summary
private  Vector labels
           
private  String name
           
private  Vector points
           
 
Constructor Summary
SimpleTimer(String n)
          The constructor.
 
Method Summary
 void mark()
          Mark (Store) the current time.
 void mark(String label)
          Mark (Store) the current time.
 Enumeration result()
          Returns a string of formatted distances.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private String name

points

private Vector points

labels

private Vector labels
Constructor Detail

SimpleTimer

public SimpleTimer(String n)
The constructor. Creates a simple timer with given name.

Parameters:
n - the name
Method Detail

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()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook