YARP
Yet Another Robot Platform
yarp::os::Ping Class Reference

Measure performance of a YARP port. More...

#include <yarp/os/Ping.h>

Public Member Functions

 Ping (const char *target=nullptr)
 
bool setTarget (const char *target)
 
void connect ()
 
void sample ()
 
void clear ()
 
ConnectResult getLastConnect ()
 
ConnectResult getAverageConnect ()
 
void report ()
 

Static Public Member Functions

static std::string renderTime (double t, int space, int decimal)
 

Detailed Description

Measure performance of a YARP port.

Can also be partially used for non-YARP ports with a compatible protocol.

Definition at line 72 of file Ping.h.

Constructor & Destructor Documentation

◆ Ping()

Ping::Ping ( const char *  target = nullptr)

Definition at line 119 of file Ping.cpp.

Member Function Documentation

◆ clear()

void Ping::clear ( )

Definition at line 260 of file Ping.cpp.

◆ connect()

void Ping::connect ( )

Definition at line 133 of file Ping.cpp.

◆ getAverageConnect()

ConnectResult Ping::getAverageConnect ( )

Definition at line 271 of file Ping.cpp.

◆ getLastConnect()

ConnectResult Ping::getLastConnect ( )

Definition at line 266 of file Ping.cpp.

◆ renderTime()

std::string Ping::renderTime ( double  t,
int  space,
int  decimal 
)
static

Definition at line 181 of file Ping.cpp.

◆ report()

void Ping::report ( )

Definition at line 158 of file Ping.cpp.

◆ sample()

void Ping::sample ( )

Definition at line 243 of file Ping.cpp.

◆ setTarget()

bool Ping::setTarget ( const char *  target)

Definition at line 126 of file Ping.cpp.


The documentation for this class was generated from the following files: