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:
committed by
Chieh-Chun Chen
parent
c0394bc09c
commit
1b029be058
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user