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

Measure performance of a YARP port. More...

#include <yarp/os/Ping.h>

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.

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)
 

Constructor & Destructor Documentation

◆ Ping()

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

Definition at line 115 of file Ping.cpp.

Member Function Documentation

◆ clear()

void Ping::clear ( )

Definition at line 252 of file Ping.cpp.

◆ connect()

void Ping::connect ( )

Definition at line 129 of file Ping.cpp.

◆ getAverageConnect()

ConnectResult Ping::getAverageConnect ( )

Definition at line 263 of file Ping.cpp.

◆ getLastConnect()

ConnectResult Ping::getLastConnect ( )

Definition at line 258 of file Ping.cpp.

◆ renderTime()

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

Definition at line 175 of file Ping.cpp.

◆ report()

void Ping::report ( )

Definition at line 154 of file Ping.cpp.

◆ sample()

void Ping::sample ( )

Definition at line 236 of file Ping.cpp.

◆ setTarget()

bool Ping::setTarget ( const char *  target)

Definition at line 122 of file Ping.cpp.


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