com.strangelight.util
Class SimpleProf

java.lang.Object
  |
  +--com.strangelight.util.SimpleProf
All Implemented Interfaces:
_Testable

public class SimpleProf
extends java.lang.Object
implements _Testable

A very rudimentary profiling tool.


Constructor Summary
SimpleProf()
           
 
Method Summary
static void _test_class()
           
 long get_elapsed_ms()
          Returns the elapsed time (in milliseconds) since this object's timer was last reset, or since the object was created (if reset() has not been called).
 java.util.Date reset()
          Resets this object's internal timer to zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleProf

public SimpleProf()
Method Detail

reset

public java.util.Date reset()
Resets this object's internal timer to zero.

Returns:
a Date object representing the new "zero" time (i.e. the current time).

get_elapsed_ms

public long get_elapsed_ms()
Returns the elapsed time (in milliseconds) since this object's timer was last reset, or since the object was created (if reset() has not been called).


_test_class

public static void _test_class()
                        throws java.lang.Exception
java.lang.Exception
See Also:
_Testable, ClassTester