+ si.avg_time += scope.get_time_spent()/period-si.history[si.hist_pos].duration/period;
+
+ CallInfo &ci = si.history[si.hist_pos];
+ Time::TimeStamp old_entry = ci.entry_time;
+ ci.entry_time = scope.get_entry_time();
+ ci.duration = scope.get_time_spent();
+
+ ++si.hist_pos;