diff options
Diffstat (limited to 'binutils-2.22/gold/timer.h')
-rw-r--r-- | binutils-2.22/gold/timer.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/binutils-2.22/gold/timer.h b/binutils-2.22/gold/timer.h index 50b55e4..4f986ca 100644 --- a/binutils-2.22/gold/timer.h +++ b/binutils-2.22/gold/timer.h @@ -48,10 +48,18 @@ class Timer TimeStats get_elapsed_time(); + // Return the stats for pass N (0 <= N <= 2). + TimeStats + get_pass_time(int n); + // Start counting the time. void start(); + // Record the time used by pass N (0 <= N <= 2). + void + stamp(int n); + private: // This class cannot be copied. Timer(const Timer&); @@ -63,6 +71,9 @@ class Timer // The time of the last call to start. TimeStats start_time_; + + // Times for each pass. + TimeStats pass_times_[3]; }; } |