source: bootcd/isolinux/syslinux-6.03/com32/lib/sys/sleep.c @ e16e8f2

Last change on this file since e16e8f2 was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 324 bytes
Line 
1/*
2 * sys/sleep.c
3 */
4
5#include <unistd.h>
6#include <sys/times.h>
7#include <syslinux/idle.h>
8
9unsigned int msleep(unsigned int msec)
10{
11    clock_t start = times(NULL);
12
13    while (times(NULL) - start < msec)
14        syslinux_idle();
15
16    return 0;
17}
18
19unsigned int sleep(unsigned int seconds)
20{
21    return msleep(seconds * 1000);
22}
Note: See TracBrowser for help on using the repository browser.