OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gold/] [timer.h] - Diff between revs 27 and 163

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 27 Rev 163
Line 46... Line 46...
 
 
  // Return the stats since start was called.
  // Return the stats since start was called.
  TimeStats
  TimeStats
  get_elapsed_time();
  get_elapsed_time();
 
 
 
  // Return the stats for pass N (0 <= N <= 2).
 
  TimeStats
 
  get_pass_time(int n);
 
 
  // Start counting the time.
  // Start counting the time.
  void
  void
  start();
  start();
 
 
 
  // Record the time used by pass N (0 <= N <= 2).
 
  void
 
  stamp(int n);
 
 
 private:
 private:
  // This class cannot be copied.
  // This class cannot be copied.
  Timer(const Timer&);
  Timer(const Timer&);
  Timer& operator=(const Timer&);
  Timer& operator=(const Timer&);
 
 
Line 61... Line 69...
  static void
  static void
  get_time(TimeStats* now);
  get_time(TimeStats* now);
 
 
  // The time of the last call to start.
  // The time of the last call to start.
  TimeStats start_time_;
  TimeStats start_time_;
 
 
 
  // Times for each pass.
 
  TimeStats pass_times_[3];
};
};
 
 
}
}
#endif
#endif
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.