Package io.latentai.android.lre.result
Class Results.Timings
-
- All Implemented Interfaces:
public class Results.TimingsTimings 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 voidsetPreprocessTime(long preprocessTime)voidsetInferenceTime(long inferenceTime)voidsetPostprocessTime(long postprocessTime)voidsetPredictionTime(long predictionTime)longgetPreprocessTime()Retrieve the preprocessing time. longgetInferenceTime()Retrieve the inference time. longgetPostprocessTime()Retrieve the postprocessing time. longgetPredictionTime()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.
-
-
-
-