HIPO4 C++ Library 4.4.1
Columnar I/O library for CLAS12 physics data
Loading...
Searching...
No Matches
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.

Member Function Documentation

◆ reset()

void hipo::ChainStatistics::reset ( )
inlinenoexcept

◆ elapsed_seconds()

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

◆ throughput()

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

Member Data Documentation

◆ total_events

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

◆ events_processed

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

◆ events_skipped

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

◆ start_time

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

◆ end_time

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

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