Skip to content

Commit

Permalink
Renamed passed() => hasPassed()
Browse files Browse the repository at this point in the history
  • Loading branch information
sofian committed May 7, 2015
1 parent 4909a7d commit 6c0bdf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Chrono.cpp
Expand Up @@ -93,7 +93,7 @@ unsigned long Chrono::elapsed() const {
return _offset + (_isRunning ? (_getTime() - _startTime) : 0);
}

bool Chrono::passed(unsigned long timeout) const
bool Chrono::hasPassed(unsigned long timeout) const
{
return (elapsed() >= timeout);
}
Expand Down
2 changes: 1 addition & 1 deletion Chrono.h
Expand Up @@ -89,7 +89,7 @@ class Chrono
unsigned long elapsed() const;

/// Returns true iff elapsed time has passed given timeout.
bool passed(unsigned long timeout) const;
bool hasPassed(unsigned long timeout) const;

/// Returns true iff the chronometer is currently running.
bool isRunning() const;
Expand Down

0 comments on commit 6c0bdf6

Please sign in to comment.