Changeset 8e24ef for src/Helpers/Chronos.hpp
- Timestamp:
- Apr 2, 2011, 12:20:10 AM (15 years ago)
- Children:
- bbd746
- Parents:
- 93abe8
- git-author:
- Frederik Heber <heber@…> (03/15/11 09:53:34)
- git-committer:
- Frederik Heber <heber@…> (04/02/11 00:20:10)
- File:
-
- 1 edited
-
src/Helpers/Chronos.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Helpers/Chronos.hpp
r93abe8 r8e24ef 26 26 //!> unit tests needs access to private members 27 27 friend class ChronosTest; 28 //!> operator needs to access some internals 29 friend std::ostream& operator<<(std::ostream &ost, const Chronos &_time); 28 30 public : 29 31 … … 33 35 * @return current amount of time passed for this function, 0 if unknown, -1 if currently running 34 36 */ 35 intgetTime(const std::string _name) const;37 double getTime(const std::string _name) const; 36 38 37 39 /** Resets time counter for this function \a _name to zero. … … 55 57 /** Sums up total time accounted for. 56 58 * 57 * @return total time 59 * @return total time in seconds 58 60 */ 59 intSumUpTotalTime() const;61 double SumUpTotalTime() const; 60 62 61 63 /** Sums up all functions accounted. … … 72 74 73 75 private: 76 /** Returns the current timer in seconds. 77 * 78 * This function is present to allow for changing of time measurements 79 * without the other functions noticing. 80 * 81 * \note We convert clock() by CLOCKS_PER_SEC. 82 * 83 * @return current time in unit of seconds 84 */ 85 double getCurrentTime() const; 74 86 75 typedef std::map<const std::string, int> TimekeepingMap; 76 typedef std::map<const std::string, bool> TimerStatusMap; 87 88 typedef std::map<const std::string, double> TimekeepingMap; 89 typedef std::map<const std::string, double> TimerStatusMap; 77 90 78 91 TimekeepingMap AccountedTime; 79 TimerStatusMap IsTimeRunning;92 TimerStatusMap TimeRunning; 80 93 }; 81 94
Note:
See TracChangeset
for help on using the changeset viewer.
