Kanzi 3.9.10
kanzi::IntervalProfilerSampleStatistics Struct Reference

#include <kanzi/core/profiling/interval_profiler_sample_statistics.hpp>

Public Member Functions

chrono::nanoseconds calculateAverage () const
 Calculates the average duration of the interval.
 
 IntervalProfilerSampleStatistics ()
 Constructor.
 

Public Attributes

chrono::nanoseconds m_longestInterval
 The longest interval.
 
uint64_t m_numIntervals
 Total number of intervals measured.
 
chrono::nanoseconds m_shortestInterval
 The shortest interval.
 
chrono::nanoseconds m_totalDuration
 The total duration of all intervals.
 

Detailed Description

Interval profiler sample statistics.

Constructor & Destructor Documentation

◆ IntervalProfilerSampleStatistics()

kanzi::IntervalProfilerSampleStatistics::IntervalProfilerSampleStatistics ( )
inlineexplicit

Constructor.

Member Function Documentation

◆ calculateAverage()

chrono::nanoseconds kanzi::IntervalProfilerSampleStatistics::calculateAverage ( ) const
inline

Calculates the average duration of the interval.

Member Data Documentation

◆ m_totalDuration

chrono::nanoseconds kanzi::IntervalProfilerSampleStatistics::m_totalDuration

The total duration of all intervals.

◆ m_longestInterval

chrono::nanoseconds kanzi::IntervalProfilerSampleStatistics::m_longestInterval

The longest interval.

◆ m_shortestInterval

chrono::nanoseconds kanzi::IntervalProfilerSampleStatistics::m_shortestInterval

The shortest interval.

◆ m_numIntervals

uint64_t kanzi::IntervalProfilerSampleStatistics::m_numIntervals

Total number of intervals measured.


The documentation for this struct was generated from the following file: