Browse Source

Kernel & LibC: Add CLOCK_REALTIME constant

Liav A 5 years ago
parent
commit
5d90e9cfb8
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Kernel/UnixTypes.h
  2. 1 0
      Libraries/LibC/time.h

+ 1 - 0
Kernel/UnixTypes.h

@@ -466,6 +466,7 @@ typedef enum {
 
 typedef int clockid_t;
 
+#define CLOCK_REALTIME 0
 #define CLOCK_MONOTONIC 1
 #define TIMER_ABSTIME 99
 

+ 1 - 0
Libraries/LibC/time.h

@@ -69,6 +69,7 @@ struct timespec {
 
 typedef int clockid_t;
 
+#define CLOCK_REALTIME 0
 #define CLOCK_MONOTONIC 1
 #define TIMER_ABSTIME 99