Package com.gencior.triton.core.pojo
Class TritonStatisticDuration
java.lang.Object
com.gencior.triton.core.pojo.TritonStatisticDuration
Encapsulates duration statistics for server operations.
This class tracks how many times an operation occurred and the total accumulated time. This is commonly used to track inference timing metrics such as compute time, queue wait time, or input preparation time.
This is an immutable object that wraps the gRPC message StatisticDuration.
- Since:
- 1.0.0
- Author:
- sachachoumiloff
-
Method Summary
Modifier and TypeMethodDescriptionstatic TritonStatisticDurationlonggetCount()Returns the number of times this operation occurred.doubleReturns the total accumulated time for all operations in milliseconds.longReturns the total accumulated time for all operations in nanoseconds.
-
Method Details
-
fromProto
-
getCount
public long getCount()Returns the number of times this operation occurred.- Returns:
- the operation count
-
getTotalTimeNs
public long getTotalTimeNs()Returns the total accumulated time for all operations in nanoseconds.- Returns:
- the total time in nanoseconds
-
getTotalTimeMs
public double getTotalTimeMs()Returns the total accumulated time for all operations in milliseconds.- Returns:
- the total time in milliseconds as a double
-