H
Hans Fugal
I want a program to wait for some moment in time, and resume operation
at that moment. sleep is ruled out because it just counts cycles and is
thrown off when my laptop suspends.
In C I'd use a one-fire timer, using setitimer. But in some quick
googling it looks like the ruby interpreter may use setitimer internally
for thread scheduling. Is there a safe way in ruby to sleep until a real
moment in time?
at that moment. sleep is ruled out because it just counts cycles and is
thrown off when my laptop suspends.
In C I'd use a one-fire timer, using setitimer. But in some quick
googling it looks like the ruby interpreter may use setitimer internally
for thread scheduling. Is there a safe way in ruby to sleep until a real
moment in time?