Ada 4.1.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
event_aggregate Struct Reference

#include <event_counter.h>

Public Member Functions

 event_aggregate ()=default
void operator<< (const event_count &other)
double elapsed_sec () const
double elapsed_ns () const
double cycles () const
double instructions () const

Public Attributes

bool has_events = false
int iterations = 0
event_count total {}
event_count best {}
event_count worst {}

Detailed Description

Definition at line 70 of file event_counter.h.

Constructor & Destructor Documentation

◆ event_aggregate()

event_aggregate::event_aggregate ( )
default

Member Function Documentation

◆ cycles()

double event_aggregate::cycles ( ) const
inline

Definition at line 92 of file event_counter.h.

References iterations, and total.

◆ elapsed_ns()

double event_aggregate::elapsed_ns ( ) const
inline

Definition at line 91 of file event_counter.h.

References iterations, and total.

◆ elapsed_sec()

double event_aggregate::elapsed_sec ( ) const
inline

Definition at line 90 of file event_counter.h.

References iterations, and total.

◆ instructions()

double event_aggregate::instructions ( ) const
inline

Definition at line 93 of file event_counter.h.

References iterations, and total.

◆ operator<<()

void event_aggregate::operator<< ( const event_count & other)
inline

Definition at line 79 of file event_counter.h.

References best, event_count::elapsed, iterations, total, and worst.

Member Data Documentation

◆ best

event_count event_aggregate::best {}

Definition at line 74 of file event_counter.h.

Referenced by Ada(), and operator<<().

◆ has_events

bool event_aggregate::has_events = false

Definition at line 71 of file event_counter.h.

◆ iterations

int event_aggregate::iterations = 0

Definition at line 72 of file event_counter.h.

Referenced by cycles(), elapsed_ns(), elapsed_sec(), instructions(), and operator<<().

◆ total

event_count event_aggregate::total {}

Definition at line 73 of file event_counter.h.

Referenced by cycles(), elapsed_ns(), elapsed_sec(), instructions(), and operator<<().

◆ worst

event_count event_aggregate::worst {}

Definition at line 75 of file event_counter.h.

Referenced by operator<<().


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