lib/ztk/profiler/timer/class_methods.rb in ztk-2.4.0 vs lib/ztk/profiler/timer/class_methods.rb in ztk-2.4.1
- old
+ new
@@ -52,9 +52,13 @@
end
result
end
+ def count
+ @@timers.count
+ end
+
def benchmark_total
@@benchmark_total ||= @@timers.map(&:benchmark).reduce(&:+)
@@benchmark_total
end