diff options
author | Richard Henderson <rth@redhat.com> | 2001-08-18 16:10:22 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-08-18 16:10:22 -0700 |
commit | 20cc76d56e51e3029ef532eabe2634425955fd12 (patch) | |
tree | 87396ec6d992b99795d1807401b33464cc5bd4d4 /gcc/timevar.h | |
parent | 9c34dbbf06f7ac8a2a0ac0d9c4fd8540f24cec83 (diff) | |
download | gcc-20cc76d56e51e3029ef532eabe2634425955fd12.zip gcc-20cc76d56e51e3029ef532eabe2634425955fd12.tar.gz gcc-20cc76d56e51e3029ef532eabe2634425955fd12.tar.bz2 |
timevar.h (struct timevar_time_def): Change element type to float.
* timevar.h (struct timevar_time_def): Change element type to float.
(ticks_to_msec, clocks_to_msec): Likewise.
(TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
(get_time): Likewise.
(timevar_print): Adjust zero check and printing to match.
From-SVN: r45013
Diffstat (limited to 'gcc/timevar.h')
-rw-r--r-- | gcc/timevar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/timevar.h b/gcc/timevar.h index 5da847d..f6449bc 100644 --- a/gcc/timevar.h +++ b/gcc/timevar.h @@ -45,7 +45,7 @@ */ /* This structure stores the various varieties of time that can be - measured. Times are stored in milliseconds. The time may be an + measured. Times are stored in seconds. The time may be an absolute time or a time difference; in the former case, the time base is undefined, except that the difference between two times produces a valid time difference. */ @@ -53,14 +53,14 @@ struct timevar_time_def { /* User time in this process. */ - unsigned long user; + float user; /* System time (if applicable for this host platform) in this process. */ - unsigned long sys; + float sys; /* Wall clock time. */ - unsigned long wall; + float wall; }; /* An enumeration of timing variable indentifiers. Constructed from |