Skip to content

Commit

Permalink
Makes more functions in Timer.h be const
Browse files Browse the repository at this point in the history
  • Loading branch information
kpp committed Jun 7, 2015
1 parent 0887161 commit 96bb123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/Timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ class TDuration
template <typename RATIO2> TDuration<RATIO2> convertTo() const {
return TDuration<RATIO2>(value * (RATIO::num * RATIO2::den) / (double)(RATIO::den * RATIO2::num));
}
int toInt() {
int toInt() const {
return floor(value);
}
double toDouble() {
double toDouble() const {
return value;
}
std::string toString(
Expand Down

0 comments on commit 96bb123

Please sign in to comment.