summaryrefslogtreecommitdiff
path: root/gcc/timevar.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-17 01:27:49 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-17 01:27:49 +0000
commit8ebf91ffefc10880feb8c8e5cddeef7a870696f5 (patch)
treed06379f9caf82cb62fa1d7889ebb1309f38e52b8 /gcc/timevar.h
parent37d9d338b607e66ee1f8b8da8157fc37abbaf55a (diff)
downloadgcc-8ebf91ffefc10880feb8c8e5cddeef7a870696f5.tar.gz
* final.c (shorten_branches): Clear the end of the label_align
array only if we made it larger. Break up messy expressions for clarity. * diagnostic.c (internal_error): Check for error recursion before doing ICE suppression. * timevar.c: Timing variables now count in milliseconds. (init_timevar): Set up ticks_to_msec and clocks_to_msec here. (get_time): Not here. (timevar_print): Don't print any timer whose user, cpu, and wall times are all zero as displayed. * timevar.h: Update comment aboout units. Make timevar counters unsigned. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44948 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/timevar.h')
-rw-r--r--gcc/timevar.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/timevar.h b/gcc/timevar.h
index 187b60e3cb8..5da847dff38 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 microseconds. The time may be an
+ measured. Times are stored in milliseconds. 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. */
- long user;
+ unsigned long user;
/* System time (if applicable for this host platform) in this
process. */
- long sys;
+ unsigned long sys;
/* Wall clock time. */
- long wall;
+ unsigned long wall;
};
/* An enumeration of timing variable indentifiers. Constructed from