source:
trunk/libs/newlib/src/newlib/libc/sys/sysvi386/sleep.c
@
444
Last change on this file since 444 was 444, checked in by , 6 years ago | |
---|---|
File size: 185 bytes |
Line | |
---|---|
1 | #include <sys/types.h> |
2 | #include <sys/signal.h> |
3 | |
4 | unsigned |
5 | sleep(unsigned secs) { |
6 | extern time_t time (time_t *); |
7 | time_t t = time(0); |
8 | |
9 | _alarm(secs); |
10 | _pause(); |
11 | return (time(0) - t); |
12 | } |
Note: See TracBrowser
for help on using the repository browser.