diff options
author | Jiri Gaisler <jiri@gaisler.se> | 2015-02-19 23:31:24 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-02-21 23:27:24 -0500 |
commit | 96d67095792f5c8c0c91522820de861e54c37728 (patch) | |
tree | 66279354644eb7be5545b3c2272db5e8ec3c2ee7 /sim/erc32/interf.c | |
parent | bb6ead917c6aa8159281cac13b603e43035dcea3 (diff) | |
download | gdb-96d67095792f5c8c0c91522820de861e54c37728.zip gdb-96d67095792f5c8c0c91522820de861e54c37728.tar.gz gdb-96d67095792f5c8c0c91522820de861e54c37728.tar.bz2 |
sim/erc32: Fix incorrect simulator performance report
Diffstat (limited to 'sim/erc32/interf.c')
-rw-r--r-- | sim/erc32/interf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index ca1a29a..608b224 100644 --- a/sim/erc32/interf.c +++ b/sim/erc32/interf.c @@ -24,7 +24,6 @@ #include <string.h> #include <stdio.h> #include <stdlib.h> -#include <time.h> #include <sys/fcntl.h> #include "sis.h" #include "libiberty.h" @@ -76,7 +75,7 @@ run_sim(sregs, icount, dis) (*sim_callback->printf_filtered) (sim_callback, "resuming at %x\n", sregs->pc); init_stdio(); - sregs->starttime = time(NULL); + sregs->starttime = get_time(); irq = 0; if ((sregs->pc != 0) && (ebase.simtime == 0)) boot_init(); @@ -143,7 +142,7 @@ run_sim(sregs, icount, dis) } } sim_halt(); - sregs->tottime += time(NULL) - sregs->starttime; + sregs->tottime += get_time() - sregs->starttime; restore_stdio(); clearerr(stdin); if (sregs->err_mode) |