Method: Protobuf::Rpc::Stat#elapsed_time
- Defined in:
- lib/protobuf/rpc/stat.rb
#elapsed_time ⇒ Object
41 42 43 |
# File 'lib/protobuf/rpc/stat.rb', line 41 def elapsed_time (start_time && end_time ? "#{(end_time - start_time).round(4)}s" : nil) end |