faster
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@514 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
fed11f4a95
commit
1ae9b9408c
12 changed files with 81 additions and 32 deletions
|
|
@ -414,7 +414,7 @@ void MwLLNextEvent(MwLL handle) {
|
|||
void MwLLSleep(int ms) {
|
||||
struct timespec ts;
|
||||
|
||||
ts.tv_sec = ms / 1000;
|
||||
ts.tv_sec = ms / 1000;
|
||||
ts.tv_nsec = (ms % 1000) * 1000 * 1000;
|
||||
|
||||
nanosleep(&ts, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue