Package io.latentai.android.lre.result
Class Results.Timings
-
- All Implemented Interfaces:
public class Results.Timings
Timings class to track inference and processing times.
-
-
Constructor Summary
Constructors Constructor Description Results.Timings(long preprocess, long inference, long postprocess, long prediction)
Construct a new timings set from measured times.
-
Method Summary
Modifier and Type Method Description void
setPreprocessTime(long preprocessTime)
void
setInferenceTime(long inferenceTime)
void
setPostprocessTime(long postprocessTime)
void
setPredictionTime(long predictionTime)
long
getPreprocessTime()
Retrieve the preprocessing time. long
getInferenceTime()
Retrieve the inference time. long
getPostprocessTime()
Retrieve the postprocessing time. long
getPredictionTime()
Retrieve the prediction time. -
-
Constructor Detail
-
Results.Timings
Results.Timings(long preprocess, long inference, long postprocess, long prediction)
Construct a new timings set from measured times.- Parameters:
preprocess
- the millisecond count of preprocessing.inference
- the millisecond count of inference.postprocess
- the millisecond count of postprocessing.prediction
- the millisecond count of the whole prediction.
-
-
Method Detail
-
setPreprocessTime
void setPreprocessTime(long preprocessTime)
-
setInferenceTime
void setInferenceTime(long inferenceTime)
-
setPostprocessTime
void setPostprocessTime(long postprocessTime)
-
setPredictionTime
void setPredictionTime(long predictionTime)
-
getPreprocessTime
long getPreprocessTime()
Retrieve the preprocessing time.
- Returns:
a millisecond preprocessing time.
-
getInferenceTime
long getInferenceTime()
Retrieve the inference time.
- Returns:
a millisecond inference time.
-
getPostprocessTime
long getPostprocessTime()
Retrieve the postprocessing time.
- Returns:
a millisecond postprocessing time.
-
getPredictionTime
long getPredictionTime()
Retrieve the prediction time.
- Returns:
a millisecond prediction time.
-
-
-
-