🏗️」 wip: kinda working

This commit is contained in:
2025-08-15 23:49:43 +02:00
parent 057fb25cf7
commit 162de73a21
5 changed files with 114 additions and 18 deletions

View File

@ -1,15 +1,30 @@
#pragma once
void append_time(double time);
#include <ping.h>
#include <sys/types.h>
void append_time(double time);
/**
* @brief Can be used to get the avarage rtt
*/
double get_avg_rtt(void);
/**
* @brief Can be used to get the
* @brief Can be used to get the min rtt
*/
double get_min_rtt(void);
/**
* @brief Can be used to get the max rtt
*/
double get_max_rtt(void);
/**
* @brief Can be used to get the stddev rtt
*/
double get_stddev_rtt(void);
/**
* @brief Can be used to check if the timeout in passed
*/
bool check_for_timeout(struct timeval start, options_t opt);
void print_stats(void);