module NumberTheory
Public Class Methods
time_once() { || ... }
click to toggle source
# File lib/number-theory/utils.rb, line 3 def self.time_once start = Time.now yield (Time.now - start).round(3) end
# File lib/number-theory/utils.rb, line 3 def self.time_once start = Time.now yield (Time.now - start).round(3) end