current_beat_duration
Get the duration of the current beat in seconds. This is the actual length of time which will elapse with sleep 1.
sleep 1
Introduced in v2.6
use_bpm 60 puts current_beat_duration use_bpm 120 puts current_beat_duration
#=> 1 #=> 0.5