mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 03:19:54 +08:00
13 lines
185 B
C
13 lines
185 B
C
#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);
|
|
}
|