sleep: do float to seconds/nanoseconds conversion in C.