Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
sleep ( + 1 -
puts "Time is now #{"%10.5f" %}"
start_time = current_time =
while current_time.min == start_time.min
i = 0
while == current_time.sec
i += 1
puts "Ran #{i} in the last sec #{"%10.5f" %}"
current_time =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.