SCP: Fix output of SHOW QUEUE to also include event due time in usecs

This commit is contained in:
Mark Pizzolato 2016-11-03 13:21:59 -07:00
parent f30de55f18
commit 0779a945d2

9
scp.c
View file

@ -4627,14 +4627,13 @@ else {
if (uptr == &sim_expect_unit)
fprintf (st, " Expect fired");
else
if ((dptr = find_dev_from_unit (uptr)) != NULL) {
if ((dptr = find_dev_from_unit (uptr)) != NULL)
fprintf (st, " %s", sim_dname (dptr));
if (dptr->numunits > 1)
fprintf (st, " at %d%s\n", accum + uptr->time, (uptr->flags & UNIT_IDLE) ? " (Idle capable)" : "");
}
else
fprintf (st, " Unknown");
fprintf (st, " at %d\n", accum + uptr->time);
fprintf (st, " at %d (%.0f usecs) %s\n", accum + uptr->time,
((accum + uptr->time)*1000000.0)/sim_timer_inst_per_sec (),
(uptr->flags & UNIT_IDLE) ? " (Idle capable)" : "");
accum = accum + uptr->time;
}
}