diff --git a/lib/new_relic/stats.rb b/lib/new_relic/stats.rb index 138cbe2a61..e1fa661cc5 100644 --- a/lib/new_relic/stats.rb +++ b/lib/new_relic/stats.rb @@ -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