Module: Pause::Helper::Timing

Included in:
Analyzer, Redis::Adapter
Defined in:
lib/pause/helper/timing.rb

Instance Method Summary collapse

Instance Method Details

#period_marker(resolution, timestamp = Time.now) ⇒ Object



4
5
6
# File 'lib/pause/helper/timing.rb', line 4

def period_marker(resolution, timestamp = Time.now)
  timestamp.to_i / resolution * resolution
end