Skip to content

Instantly share code, notes, and snippets.

@chadjemmett
Created August 27, 2012 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadjemmett/3493524 to your computer and use it in GitHub Desktop.
Save chadjemmett/3493524 to your computer and use it in GitHub Desktop.
a ruby timer
timer = Proc.new do
|time, deadline|
time = Time.now
deadline = time + 5
while time != deadline
time = Time.now
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment