What would the best way of incorporating Time::HiRes be? I could think of forking off a child who would be in charge of generating the alarm signal (using kill) to the parent, after sleeping for a time using the Time::HiRes sleep function.
This feels like a clunky solution, so is there a way for a Perl script to ask the OS for a signal with better resolution?
Also, alarm() is sadly unimplemented on Windows NT, which is (idem) the OS I'm currently using. Thanks!