Sha256: 7a2dd76b219fa4121dbc99359f443c5fcaceccfa8e5324d7a1d0e84c9d8daccc
Contents?: true
Size: 470 Bytes
Versions: 61
Compression:
Stored size: 470 Bytes
Contents
module Sapience module Extensions module Grape module Timings extend self def db_runtime=(value) Thread.current[:grape_db_runtime] = value end def db_runtime Thread.current[:grape_db_runtime] ||= 0 end def reset_db_runtime self.db_runtime = 0 end def append_db_runtime(event) self.db_runtime += event.duration end end end end end
Version data entries
61 entries across 61 versions & 1 rubygems