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:
Romain Beurdouche
2025-08-13 09:55:42 +00:00
parent 05f9c975ee
commit 748684df05
+1
View File
@@ -193,6 +193,7 @@ static inline void merge_meas(time_stats_t *dst_ts, const time_stats_t *src_ts)
return;
dst_ts->trials += src_ts->trials;
dst_ts->diff += src_ts->diff;
dst_ts->diff_square += src_ts->diff_square;
if (src_ts->max > dst_ts->max)
dst_ts->max = src_ts->max;
}