|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.PersistentObject
org.apache.mahout.math.Timer
@Deprecated public class Timer
Constructor Summary | |
---|---|
Timer()
Deprecated. Constructs a new timer, initially not started. |
Method Summary | |
---|---|
Timer |
display()
Deprecated. Prints the elapsed time on System.out |
float |
elapsedTime()
Deprecated. Same as seconds(). |
long |
millis()
Deprecated. Returns the elapsed time in milli seconds; does not stop the timer, if started. |
Timer |
minus(Timer other)
Deprecated. T = this - other; Constructs and returns a new timer which is the difference of the receiver and the other timer. |
float |
minutes()
Deprecated. Returns the elapsed time in minutes; does not stop the timer, if started. |
Timer |
plus(Timer other)
Deprecated. T = this + other; Constructs and returns a new timer which is the sum of the receiver and the other timer. |
Timer |
reset()
Deprecated. Resets the timer. |
float |
seconds()
Deprecated. Returns the elapsed time in seconds; does not stop the timer, if started. |
Timer |
start()
Deprecated. Starts the timer. |
Timer |
stop()
Deprecated. Stops the timer. |
static void |
test(int size)
Deprecated. Shows how to use a timer in convenient ways. |
java.lang.String |
toString()
Deprecated. Returns a String representation of the receiver. |
Methods inherited from class org.apache.mahout.math.PersistentObject |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Timer()
Method Detail |
---|
public Timer display()
public float elapsedTime()
public long millis()
public Timer minus(Timer other)
other
- the timer to subtract.
public float minutes()
public Timer plus(Timer other)
other
- the timer to add.
public Timer reset()
public float seconds()
public Timer start()
public Timer stop()
public static void test(int size)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |