Module: Bitcoin::Logger::TimeLogger
- Included in:
- Logger
- Defined in:
- lib/bitcoin/logger.rb
Instance Method Summary collapse
Instance Method Details
#time(message) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/bitcoin/logger.rb', line 25 def time time = Time.now res = yield debug { % (Time.now - time) } res end |