Class TritonStatisticDuration

java.lang.Object
com.gencior.triton.core.pojo.TritonStatisticDuration

public final class TritonStatisticDuration extends Object
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 Details

    • fromProto

      public static TritonStatisticDuration fromProto(GrpcService.StatisticDuration proto)
    • 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