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 68 of file Ping.h.

Constructor & Destructor Documentation

◆ Ping()

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

Definition at line 116 of file Ping.cpp.

Member Function Documentation

◆ clear()

void Ping::clear ( )

Definition at line 257 of file Ping.cpp.

◆ connect()

void Ping::connect ( )

Definition at line 130 of file Ping.cpp.

◆ getAverageConnect()

ConnectResult Ping::getAverageConnect ( )

Definition at line 268 of file Ping.cpp.

◆ getLastConnect()

ConnectResult Ping::getLastConnect ( )

Definition at line 263 of file Ping.cpp.

◆ renderTime()

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

Definition at line 178 of file Ping.cpp.

◆ report()

void Ping::report ( )

Definition at line 155 of file Ping.cpp.

◆ sample()

void Ping::sample ( )

Definition at line 240 of file Ping.cpp.

◆ setTarget()

bool Ping::setTarget ( const char *  target)

Definition at line 123 of file Ping.cpp.

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