Method: Serf::Middleware::RequestTimer#call
- Defined in:
- lib/serf/middleware/request_timer.rb
#call(parcel) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/serf/middleware/request_timer.rb', line 19 def call(parcel) t = timer.start response_parcel = app.call parcel response_parcel[:serf_elapsed_time] = t.mark return response_parcel end |