Sha256: cc44ab02bdd1492415e1ed3143bbae72dfb16bd5202de0e0cfe8c9020ce774c3
Contents?: true
Size: 493 Bytes
Versions: 5
Compression:
Stored size: 493 Bytes
Contents
module Eco module API class Session class Batch module Launcher module Benchmarking private def str_per_sec(start, count) now = Time.now secs = (now - start).round(2) return ' -- ' unless secs > 0.0 per_sec = (count.to_f / secs).round(2) "#{secs}s -> #{per_sec} people/s" end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems