docs/TIME.md in lite-ruby-1.0.5 vs docs/TIME.md in lite-ruby-1.0.6

- old
+ new

@@ -1,7 +1,16 @@ # Time +`elapse` +------ +Returns the amount of time taken to execute a block. + +```ruby +Time.elapse { sleep 1 } #=> 1.00005465 +Time.elapse(verbose: true) { sleep 1 } #=> { started_at: 1565834550.444132, ended_at: 1565834551.447784, runtime: 1.0036518573760986 } +``` + `format` ------ Converts a `time` object to `strftime` it using a human readable string. **Note:** The following values are to be used in combination with one's available in @@ -81,14 +90,6 @@ | Combo | 12h datetime | `:datetime_12_abbr_tzn` | %b %-d, %Y %H:%M %Z | Jan 9, 2014 12:31 am UTC | | Combo | 12h datetime | `:datetime_12_iso_tzn` | %Y-%m-%d %H:%M %z | 2014-01-09 12:31 am +0000 | ```ruby Time.now.stamp(:datetime) #=> 'January 09, 2014 02:31 pm' -``` - -`elapse` ------- -Returns the amount of time taken to execute a block. - -```ruby -Time.elapse { sleep 1 } #=> 1.00005465 ```