public class TimeControl
extends java.lang.Object
This class makes the UCS time control.
Constructor and Description |
---|
TimeControl()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
initTimeAverages()
It initilizes the time averages to zero.
|
void |
printTimes()
It prints the average time wasted in every kind of run
|
void |
printTimes(java.io.PrintWriter pW)
It prints the average time wasted in every kind of run
|
void |
updateTestTime(long iTestTime)
Update the test time
|
void |
updateTotalTime(long iTime)
Update the total time
|
void |
updateTrainTime(long iTrainTime)
Updates the training time
|
public void initTimeAverages()
It initilizes the time averages to zero.
public void updateTrainTime(long iTrainTime)
iTrainTime
- is the time at the beginning of trainingpublic void updateTestTime(long iTestTime)
iTestTime
- is the time at the beginning of the testpublic void updateTotalTime(long iTime)
iTime
- is the incremental time to sum to the total time of the execution.public void printTimes(java.io.PrintWriter pW)
It prints the average time wasted in every kind of run
pW
- is the PrintWriter associated to the file where the time
averages have to be printed.
public void printTimes()
It prints the average time wasted in every kind of run