blob: 723ee3ce2a69addbe65ee036a5af5cffdf2ef12d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <sys/types.h>
#include <sys/signal.h>
unsigned
sleep(unsigned secs) {
extern time_t time (time_t *);
time_t t = time(0);
_alarm(secs);
_pause();
return (time(0) - t);
}
|