module GrapeLogging::Timings

Public Instance Methods

append_db_runtime(event) click to toggle source
# File lib/grape_logging/timings.rb, line 17
def append_db_runtime(event)
  self.db_runtime += event.duration
end
db_runtime() click to toggle source
# File lib/grape_logging/timings.rb, line 9
def db_runtime
  Thread.current[:grape_db_runtime] ||= 0
end
db_runtime=(value) click to toggle source
# File lib/grape_logging/timings.rb, line 5
def db_runtime=(value)
  Thread.current[:grape_db_runtime] = value
end
reset_db_runtime() click to toggle source
# File lib/grape_logging/timings.rb, line 13
def reset_db_runtime
  self.db_runtime = 0
end