xrpld
Loading...
Searching...
No Matches
xrpl::LoadEvent Class Reference

#include <LoadEvent.h>

Collaboration diagram for xrpl::LoadEvent:

Public Member Functions

 LoadEvent (LoadMonitor &monitor, std::string name, bool shouldStart)
 LoadEvent (LoadEvent const &)=delete
 ~LoadEvent ()
std::string const & name () const
std::chrono::steady_clock::duration waitTime () const
std::chrono::steady_clock::duration runTime () const
void setName (std::string const &name)
void start ()
void stop ()

Private Attributes

LoadMonitormonitor_
bool running_
std::string name_
std::chrono::steady_clock::time_point mark_
std::chrono::steady_clock::duration timeWaiting_
std::chrono::steady_clock::duration timeRunning_

Detailed Description

Definition at line 15 of file LoadEvent.h.

Constructor & Destructor Documentation

◆ LoadEvent() [1/2]

xrpl::LoadEvent::LoadEvent ( LoadMonitor & monitor,
std::string name,
bool shouldStart )

Definition at line 12 of file LoadEvent.cpp.

◆ LoadEvent() [2/2]

xrpl::LoadEvent::LoadEvent ( LoadEvent const & )
delete

◆ ~LoadEvent()

xrpl::LoadEvent::~LoadEvent ( )

Definition at line 22 of file LoadEvent.cpp.

Member Function Documentation

◆ name()

std::string const & xrpl::LoadEvent::name ( ) const
nodiscard

Definition at line 29 of file LoadEvent.cpp.

◆ waitTime()

std::chrono::steady_clock::duration xrpl::LoadEvent::waitTime ( ) const
nodiscard

Definition at line 35 of file LoadEvent.cpp.

◆ runTime()

std::chrono::steady_clock::duration xrpl::LoadEvent::runTime ( ) const
nodiscard

Definition at line 41 of file LoadEvent.cpp.

◆ setName()

void xrpl::LoadEvent::setName ( std::string const & name)

Definition at line 47 of file LoadEvent.cpp.

◆ start()

void xrpl::LoadEvent::start ( )

Definition at line 53 of file LoadEvent.cpp.

◆ stop()

void xrpl::LoadEvent::stop ( )

Definition at line 66 of file LoadEvent.cpp.

Member Data Documentation

◆ monitor_

LoadMonitor& xrpl::LoadEvent::monitor_
private

Definition at line 51 of file LoadEvent.h.

◆ running_

bool xrpl::LoadEvent::running_
private

Definition at line 54 of file LoadEvent.h.

◆ name_

std::string xrpl::LoadEvent::name_
private

Definition at line 57 of file LoadEvent.h.

◆ mark_

std::chrono::steady_clock::time_point xrpl::LoadEvent::mark_
private

Definition at line 60 of file LoadEvent.h.

◆ timeWaiting_

std::chrono::steady_clock::duration xrpl::LoadEvent::timeWaiting_
private

Definition at line 63 of file LoadEvent.h.

◆ timeRunning_

std::chrono::steady_clock::duration xrpl::LoadEvent::timeRunning_
private

Definition at line 64 of file LoadEvent.h.