2 ** Copyright 2001, Manuel J. Petit. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
14 sleep(unsigned seconds
)
20 start
= system_time();
23 usecs
*= (bigtime_t
) seconds
;
25 err
= snooze_until(start
+ usecs
, B_SYSTEM_TIMEBASE
);
30 return seconds
- (unsigned)((system_time() - start
) / 1000000);