18,11 → 18,11 |
|
/** |
------------ |
CVS : $Id: nanoslp.c,v 1.3 2003-05-22 09:32:35 giacomo Exp $ |
CVS : $Id: nanoslp.c,v 1.4 2003-05-22 14:10:05 giacomo Exp $ |
|
File: $File$ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-05-22 09:32:35 $ |
Revision: $Revision: 1.4 $ |
Last update: $Date: 2003-05-22 14:10:05 $ |
------------ |
|
This file contains the nanosleep function (posix 14.2.5) and related |
206,8 → 206,8 |
{ |
struct timespec t, t2; |
|
t.tv_sec = usec / 100000; |
t.tv_nsec = usec % 100000 * 1000; |
t.tv_sec = usec / 1000000; |
t.tv_nsec = usec % 1000000 * 1000; |
nanosleep(&t, &t2); |
|
return t2.tv_sec; |