Method: Timerizer::Duration#to_second

Defined in:
lib/timerizer/duration.rb

#to_secondInteger

Convert the duration to the given unit. This is a helper that is equivalent to calling #to_unit with :second.

Returns:

  • (Integer)

    the quantity of the unit in the duration.

See Also:



834
# File 'lib/timerizer/duration.rb', line 834

self.define_to_unit(:second)