the current man page states: sleep() makes the calling thread sleep until seconds seconds have elapsed or a signal arrives which is not ignored. unfortunately, the NOTES section does not discuss which clock is being used. the nanosleep man page has a good discussion on the topic, and presumably the answer is the same ?
I've made the following changes to the man page. 1. Mention "real-time" seconds in the description of how long sleep() sleeps for. 2. Added the following text in NOTES: On Linux, sleep() is implemented via nanosleep(2). See the nanosleep(2) man page for a discussion of the clock used. I'm closing this bug. Please reopen if you think anything further is required.