Skip to content

Commit

Permalink
added midpoint method to stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Kayser committed Dec 17, 2010
1 parent 7d9314e commit 4c0292f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/new_relic/stats.rb
Expand Up @@ -135,6 +135,9 @@ def duration
end_time - begin_time
end

def midpoint
begin_time + (duration/2)
end
def calls_per_minute
if duration.zero?
0
Expand Down

0 comments on commit 4c0292f

Please sign in to comment.