|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.utility.TerrierTimer
public class TerrierTimer
This class implements a timer.
Field Summary | |
---|---|
protected double |
percentage
|
protected double |
total
The total number of items to process in a task. |
Constructor Summary | |
---|---|
TerrierTimer()
Default constructor. |
Method Summary | |
---|---|
int |
getMinutes()
Get the processing time in minutes. |
java.lang.String |
getPercentage()
get percentage |
int |
getSeconds()
Get the processing time in seconds. |
static java.lang.String |
longToText(long timems)
|
void |
restart()
Reset the timer. |
void |
setBreakPoint()
Compute the processing time. |
void |
setRemainingTime(double finished)
Estimate the remaining time. |
void |
setTotalNumber(double _total)
Set the overall quantitative workload of the task. |
void |
start()
Start the timer. |
java.lang.String |
toStringMinutesSeconds()
Get a string summarising the processing/remaining time in minutes and seconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double total
protected double percentage
Constructor Detail |
---|
public TerrierTimer()
Method Detail |
---|
public void start()
public void restart()
public void setBreakPoint()
public int getMinutes()
public void setTotalNumber(double _total)
public void setRemainingTime(double finished)
finished
- The quantitative finished workload.public int getSeconds()
public java.lang.String toStringMinutesSeconds()
public java.lang.String getPercentage()
public static java.lang.String longToText(long timems)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |