Browse Source

Change timeNanoSleep to timeSleep

Olivier Marty 9 years ago
parent
commit
1ed67ec7c7
2 changed files with 3 additions and 3 deletions
  1. 2 2
      time.c
  2. 1 1
      time.h

+ 2 - 2
time.c

@@ -20,7 +20,7 @@
 #include <errno.h>
 #include <stdlib.h>
 
-int timeNanoSleep(struct timespec t)
+int timeSleep(struct timespec t)
 {
   int r;
   if(t.tv_sec >= 0)
@@ -71,7 +71,7 @@ struct timespec timeGetRelative()
 int timeSleepUntil(struct timespec t)
 {
   struct timespec current = timeGetRelative();
-  return timeNanoSleep(timeDiff(t, current));
+  return timeSleep(timeDiff(t, current));
 }
 
 struct timespec timeCreate(time_t s, long ns)

+ 1 - 1
time.h

@@ -29,7 +29,7 @@ int timeSleepUntil(mytime t);
 
 mytime timeCreate(time_t s, long ns);
 
-int timeNanoSleep(mytime t);
+int timeSleep(mytime t);
 mytime timeDiff(mytime a, mytime b);
 
 #endif