public class TimeControl
extends java.lang.Object
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 |
updateReductionTime(long iReductionTime)
Updates the reduction time.
|
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 updateReductionTime(long iReductionTime)
iReductionTime
- the initial reduction time (when the reduction has started)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 be summed to the total time.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