Class RunMeter
java.lang.Object
it.univr.di.cstnu.util.RunMeter
Simple class for making a meter in the console.
- Author:
- posenato
-
Field Summary
Modifier and TypeFieldDescription(package private) long
(package private) static final int
A value between 0 and 100(package private) long
(package private) long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
printProgress
(long givenCurrent) Each call of method, advance `this.current` and print the meter.
-
Field Details
-
maxMeterSize
static final int maxMeterSizeA value between 0 and 100- See Also:
-
current
long current -
startTime
long startTime -
total
long total
-
-
Constructor Details
-
RunMeter
public RunMeter(long inputStartTime, long inputTotal, long inputCurrent) - Parameters:
inputStartTime
- in millisecondsinputTotal
- number of time to showinputCurrent
- number of time to show
-
-
Method Details
-
printProgress
public void printProgress() -
printProgress
public void printProgress(long givenCurrent) Each call of method, advance `this.current` and print the meter.- Parameters:
givenCurrent
- current meter
-