Skip to content

Commit

Permalink
Add comment to TimeKeeper::formatDuration() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Aug 10, 2016
1 parent d0c5056 commit afd9ebe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Common/TimeKeeper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ public function elapsed()
return $finished - $this->startedAt;
}

/**
* Format a duration into a human-readable time
*
* @param float $duration Duration in seconds, with fractional component
* @return string
*/
public static function formatDuration($duration)
{
if ($duration >= self::DAY * 2) {
Expand Down

0 comments on commit afd9ebe

Please sign in to comment.