private void plot_interval_vs_time(MouseLog mlog, double delay, GraphComponents main_comp, GraphComponents sec_comp)
{
for (int i = last_start; i <= last_end; i++)
{
if (events[i].hDevice != mlog.hDevice)
continue;
double x = events[i].ts;
double y;
if (i == 0)
y = 0.0;
else
y = events[i].ts - events[i].lastts;
update_minmax(x, y);
main_comp.Add(x, y);
}
}