HIPO  4.3.0
High Performance Output data format for experimental physics
hipo::ChainStatistics Struct Reference

Thread-safe statistics for chain processing. More...

#include <chain.h>

Public Member Functions

void reset () noexcept
 
double elapsed_seconds () const noexcept
 
double throughput () const noexcept
 

Public Attributes

std::atomic< long > total_events {0}
 
std::atomic< long > events_processed {0}
 
std::atomic< long > events_skipped {0}
 
std::chrono::steady_clock::time_point start_time
 
std::chrono::steady_clock::time_point end_time
 

Detailed Description

Thread-safe statistics for chain processing.

Definition at line 106 of file chain.h.

Member Function Documentation

◆ elapsed_seconds()

double hipo::ChainStatistics::elapsed_seconds ( ) const
inlinenoexcept

Definition at line 120 of file chain.h.

◆ reset()

void hipo::ChainStatistics::reset ( )
inlinenoexcept

Definition at line 113 of file chain.h.

◆ throughput()

double hipo::ChainStatistics::throughput ( ) const
inlinenoexcept

Definition at line 126 of file chain.h.

Member Data Documentation

◆ end_time

std::chrono::steady_clock::time_point hipo::ChainStatistics::end_time

Definition at line 111 of file chain.h.

◆ events_processed

std::atomic<long> hipo::ChainStatistics::events_processed {0}

Definition at line 108 of file chain.h.

◆ events_skipped

std::atomic<long> hipo::ChainStatistics::events_skipped {0}

Definition at line 109 of file chain.h.

◆ start_time

std::chrono::steady_clock::time_point hipo::ChainStatistics::start_time

Definition at line 110 of file chain.h.

◆ total_events

std::atomic<long> hipo::ChainStatistics::total_events {0}

Definition at line 107 of file chain.h.


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