elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
libc
/
system
/
sleep.c
File editor
#ifdef L_sleep #include <time.h> #include <sys/select.h> unsigned int sleep(unsigned int seconds) { time_t start, stop, elapsed; struct timeval timeout; timeout.tv_sec = seconds; timeout.tv_usec = 0; start = time(NULL); select(1, NULL, NULL, NULL, &timeout); stop = time(NULL); elapsed = stop <= start ? 0 : stop - start; return elapsed > seconds ? 0 : seconds - elapsed; } #endif
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history