TimeAccumulator

  • TimeAccumulator is a utility class for tracking the total elapsed time of code blocks.

  • It provides methods to start (beginSample), stop (endSample), and retrieve (getElapsedTimeMs) the accumulated time in milliseconds.

  • The class is designed to sum multiple time samples for aggregated timing analysis.

public class TimeAccumulator

Sums time samples together. Used for tracking the time elapsed of a set of code blocks.

Public Constructors

Public Methods

void
void
long

Inherited Methods

Public Constructors

public TimeAccumulator ()

Public Methods

public void beginSample ()

public void endSample ()

public long getElapsedTimeMs ()