Module: Spanx::Helper::Timing
- Included in:
- Actor::Analyzer, Actor::Collector
- Defined in:
- lib/spanx/helper/timing.rb
Instance Method Summary collapse
Instance Method Details
#period_marker(resolution, timestamp = Time.now) ⇒ Object
4 5 6 |
# File 'lib/spanx/helper/timing.rb', line 4 def period_marker(resolution, = Time.now) .to_i / resolution * resolution end |