Sha256: f7bdb96b184c7efbf3ecf420f3c1862fa7ac0a33a524c3d9678328ca3a46b82d
Contents?: true
Size: 378 Bytes
Versions: 2
Compression:
Stored size: 378 Bytes
Contents
class Time { def Time duration: block { """ @block @Block to be called & timed. @return @Float@ that is the duration (in seconds) of calling @block. Calls @block and times the runtime duration of doing so in seconds. Example: Time duration: { Thread sleep: 1 } # => >= 1.0 """ start = Time now block call Time now - start } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.10.0 | lib/time.fy |
fancy-0.9.0 | lib/time.fy |