Sha256: e3e9008986215fffaea839d3240050f991006701ea388b277a643159f3aac714

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

class StopwatchLog
  @@query_count = 0

  cattr_accessor :event

  def self.query_count
    @@query_count
  end

  def self.reset_query_count
    @@query_count = 0
  end

  def self.increment_query_count
    @@query_count += 1
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stopwatch-0.0.2 lib/stopwatch_log.rb
stopwatch-0.0.1 lib/stopwatch_log.rb