Package it.univr.di.cstnu.util
Class RunMeter
java.lang.Object
it.univr.di.cstnu.util.RunMeter
Simple class for making a meter in the console.
- Author:
- posenato
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) long(package private) static final intA value between 0 and 100(package private) long(package private) long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprintProgress(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 times to showinputCurrent- number of times 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
-