feat(time_meas): Standard deviation & merge
`diff_square` was not merged in `merge_meas` so that calculation of the standard deviation was not working with merged timers.
This commit is contained in:
@@ -193,6 +193,7 @@ static inline void merge_meas(time_stats_t *dst_ts, const time_stats_t *src_ts)
|
|||||||
return;
|
return;
|
||||||
dst_ts->trials += src_ts->trials;
|
dst_ts->trials += src_ts->trials;
|
||||||
dst_ts->diff += src_ts->diff;
|
dst_ts->diff += src_ts->diff;
|
||||||
|
dst_ts->diff_square += src_ts->diff_square;
|
||||||
if (src_ts->max > dst_ts->max)
|
if (src_ts->max > dst_ts->max)
|
||||||
dst_ts->max = src_ts->max;
|
dst_ts->max = src_ts->max;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user