diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-04 03:47:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-04 03:47:39 +0000 |
commit | a34abff813f4fdd5f289ea45de9e874e31e7edf3 (patch) | |
tree | f6d3be383893c3adaae166e570d5eccd71f08427 /sim/common/sim-utils.c | |
parent | 600d83316cfa68f72666d792244890789812b51a (diff) | |
download | gdb-a34abff813f4fdd5f289ea45de9e874e31e7edf3.zip gdb-a34abff813f4fdd5f289ea45de9e874e31e7edf3.tar.gz gdb-a34abff813f4fdd5f289ea45de9e874e31e7edf3.tar.bz2 |
o Add modulo argument to sim_core_attach
o Add sim-memopt module - memory option processing.
Diffstat (limited to 'sim/common/sim-utils.c')
-rw-r--r-- | sim/common/sim-utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c index c72a1ab..6a7c5ba 100644 --- a/sim/common/sim-utils.c +++ b/sim/common/sim-utils.c @@ -193,13 +193,13 @@ sim_elapsed_time_get () #ifdef HAVE_GETRUSAGE struct rusage mytime; if (getrusage (RUSAGE_SELF, &mytime) == 0) - return (SIM_ELAPSED_TIME) (((double) mytime.ru_utime.tv_sec * 1000) + (((double) mytime.ru_utime.tv_usec + 500) / 1000)); - return 0; + return 1 + (SIM_ELAPSED_TIME) (((double) mytime.ru_utime.tv_sec * 1000) + (((double) mytime.ru_utime.tv_usec + 500) / 1000)); + return 1; #else #ifdef HAVE_TIME - return (SIM_ELAPSED_TIME) time ((time_t) 0); + return 1 + (SIM_ELAPSED_TIME) time ((time_t) 0); #else - return 0; + return 1; #endif #endif } |