diff options
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) |