nr rlc stats: make avg time to tx optional

Introduce the function nr_rlc_activate_avg_time_to_tx() to
activate/deactivate collection of avg time to tx stats (which
may have an impact on realtime processing, so better not compute
them when not needed).

Fix a little bug in time_average_get_average() for when there is not stat.
This commit is contained in:
Cedric Roux
2022-08-12 12:19:09 +02:00
committed by Chieh-Chun Chen
parent c0394bc09c
commit 1b029be058
9 changed files with 56 additions and 5 deletions
+1
View File
@@ -46,6 +46,7 @@ typedef struct {
/* 'duration' is in unit microsecond */
time_average_t *time_average_new(int duration, int initial_size);
void time_average_free(time_average_t *t);
void time_average_reset(time_average_t *t);
/* add a value tagged with time 'time' unit microsecond (it also modifies 't',
* removing all data with time < 'time' - t->duration)