module Elephant
Public Class Methods
time=(flag)
click to toggle source
If set to true, the caches will report the time to process when they process.
# File lib/elephant.rb, line 14 def self.time=(flag) @@time = flag ? true : false end
time?()
click to toggle source
Used by the caches to determine if they should report the time they took to process.
# File lib/elephant.rb, line 9 def self.time? return @@time ? true : false end
time_io()
click to toggle source
Returns the IO object that timing will puts to.
# File lib/elephant.rb, line 19 def self.time_io return @@time_io end
time_io=(time_io)
click to toggle source
Sets the IO object that timing will puts to.
# File lib/elephant.rb, line 24 def self.time_io=(time_io) @@time_io = time_io end