Skip to content

Commit

Permalink
more details in the readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
elorest committed Oct 1, 2012
1 parent 9cdd3d6 commit e9b0719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Calling timer will return a time object.
Calling verbose on a Time instance will return a formatted string.

Time.timer{sleep 1}.verbose #=> 1.00 seconds
Time.at(1.weeks + 1.days + 1.hours + 1.minutes + 1.11.seconds) #=> "1 weeks 1 days 1 hours 1 minutes 1.11 seconds"
Time.at(694861.11) #=> "1 weeks 1 days 1 hours 1 minutes 1.11 seconds"
Time.at(1.weeks + 1.days + 1.hours + 1.minutes + 1.11.seconds) #=> "1 weeks 1 days 1 hours 1 minutes 1.11 seconds"
Time.at(694861.11) #=> "1 weeks 1 days 1 hours 1 minutes 1.11 seconds"

You can also pass :v => true or :verbose => true.

Expand Down

0 comments on commit e9b0719

Please sign in to comment.