Statistics
| Branch: | Revision:

streamers / measures.h @ 14e5c21e

History | View | Annotate | Download (781 Bytes)

1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
6
#ifndef MEASURES_H
7
#define MEASURES_H
8

    
9
#include <stdbool.h>
10

    
11
struct nodeID;
12

    
13
void init_measures();
14
void end_measures();
15
void add_measures(struct nodeID *id);
16
void delete_measures(struct nodeID *id);
17

    
18
void reg_chunk_duplicate();
19
void reg_chunk_playout(int id, bool b, uint64_t timestamp);
20
void reg_neigh_size(int s);
21
void reg_chunk_receive(int id, uint64_t timestamp, int hopcount, bool old, bool dup);
22
void reg_chunk_send(int id);
23
void reg_offer_accept(bool b);
24

    
25
#ifdef MONL
26
double get_rtt(struct nodeID *id);
27
double get_lossrate(struct nodeID *id);
28
double get_average_lossrate(struct  nodeID**id, int len);
29
int get_hopcount(struct nodeID *id);
30
double get_receive_delay(void);
31
#endif
32

    
33
#endif