SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::FS::Statistics::Metric::Tracker Struct Reference

#include <swcdb/fs/Statistics.h>

+ Inheritance diagram for SWC::FS::Statistics::Metric::Tracker:
+ Collaboration diagram for SWC::FS::Statistics::Metric::Tracker:

Public Member Functions

constexpr SWC_CAN_INLINE Tracker () noexcept
SWC_CAN_INLINE Tracker (Metric *a_m) noexcept
void stop (bool err) noexcept
- Public Member Functions inherited from SWC::Time::Measure< ClockT, DurationT >
SWC_CAN_INLINE Measure () noexcept
constexpr SWC_CAN_INLINE Measure (typename std::chrono::time_point< ClockT >::duration &&v) noexcept
SWC_CAN_INLINE void restart () noexcept
template<typename T = DurationT>
SWC_CAN_INLINE uint64_t elapsed () const noexcept

Public Attributes


Detailed Description

Definition at line 69 of file Statistics.h.

Constructor & Destructor Documentation

◆ Tracker() [1/2]

constexpr SWC_CAN_INLINE SWC::FS::Statistics::Metric::Tracker::Tracker ( )

Definition at line 71 of file Statistics.h.

◆ Tracker() [2/2]

SWC_CAN_INLINE SWC::FS::Statistics::Metric::Tracker::Tracker ( Metric a_m)

Definition at line 76 of file Statistics.h.

Member Function Documentation

◆ stop()

void SWC::FS::Statistics::Metric::Tracker::stop ( bool  err)

Definition at line 77 of file Statistics.h.

References SWC::FS::Statistics::Metric::add(), SWC::Time::Measure< ClockT, DurationT >::elapsed(), and m.

+ Here is the call graph for this function:

Member Data Documentation

◆ m

Metric* SWC::FS::Statistics::Metric::Tracker::m

Definition at line 80 of file Statistics.h.

Referenced by stop().

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