The Battle for Wesnoth  1.15.0+dev
Public Member Functions | Public Attributes | List of all members
metrics::sample Struct Reference

#include <metrics.hpp>

Public Member Functions

 sample ()
 
 operator const simple_wml::string_span & ()
 

Public Attributes

simple_wml::string_span name
 
int nsamples
 
clock_t parsing_time
 
clock_t processing_time
 
clock_t max_parsing_time
 
clock_t max_processing_time
 

Detailed Description

Definition at line 45 of file metrics.hpp.

Constructor & Destructor Documentation

◆ sample()

metrics::sample::sample ( )
inline

Definition at line 47 of file metrics.hpp.

Member Function Documentation

◆ operator const simple_wml::string_span &()

metrics::sample::operator const simple_wml::string_span & ( )
inline

Definition at line 62 of file metrics.hpp.

References name.

Member Data Documentation

◆ max_parsing_time

clock_t metrics::sample::max_parsing_time

Definition at line 60 of file metrics.hpp.

◆ max_processing_time

clock_t metrics::sample::max_processing_time

Definition at line 60 of file metrics.hpp.

◆ name

simple_wml::string_span metrics::sample::name

Definition at line 57 of file metrics.hpp.

Referenced by operator const simple_wml::string_span &(), and metrics::record_sample().

◆ nsamples

int metrics::sample::nsamples

Definition at line 58 of file metrics.hpp.

◆ parsing_time

clock_t metrics::sample::parsing_time

Definition at line 59 of file metrics.hpp.

◆ processing_time

clock_t metrics::sample::processing_time

Definition at line 59 of file metrics.hpp.

Referenced by compare_samples_by_time::operator()().


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