Subtract processing time from the interval sleep time

(When the interval is 1s, If the processing takes 0.4s, then sleep for 0.6s).

Requires a platform where Time::HiRes::clock_nanosleep is implemented.