Terrier IR Platform
2.2.1

uk.ac.gla.terrier.utility
Class TerrierTimer

java.lang.Object
  extended by uk.ac.gla.terrier.utility.TerrierTimer

public class TerrierTimer
extends java.lang.Object

This class implements a timer.


Constructor Summary
TerrierTimer()
          Default constructor.
 
Method Summary
 int getMinutes()
          Get the processing time in minutes.
 java.lang.String getPercentage()
           
 int getSeconds()
          Get the processing time in seconds.
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerrierTimer

public TerrierTimer()
Default constructor.

Method Detail

start

public void start()
Start the timer.


restart

public void restart()
Reset the timer.


setBreakPoint

public void setBreakPoint()
Compute the processing time.


getMinutes

public int getMinutes()
Get the processing time in minutes.


setTotalNumber

public void setTotalNumber(double total)
Set the overall quantitative workload of the task.


setRemainingTime

public void setRemainingTime(double finished)
Estimate the remaining time.

Parameters:
finished - The quantitative finished workload.

getSeconds

public int getSeconds()
Get the processing time in seconds.


toStringMinutesSeconds

public java.lang.String toStringMinutesSeconds()
Get a string summarising the processing/remaining time in minutes and seconds.


getPercentage

public java.lang.String getPercentage()

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow