Adding select support for basic socket udp receive.
[akaros.git] / kern / include / time.h
index 3507e44..79371e1 100644 (file)
@@ -17,6 +17,19 @@ struct itimerspec {
   struct timespec  it_value;     /* Timer expiration */
 };
 
+struct timeval {
+       time_t tv_sec;          /* seconds */
+       time_t tv_usec; /* microseconds */
+};
+
 void udelay(uint64_t usec);
+uint64_t tsc2sec(uint64_t tsc_time);
+uint64_t tsc2msec(uint64_t tsc_time);
+uint64_t tsc2usec(uint64_t tsc_time);
+uint64_t tsc2nsec(uint64_t tsc_time);
+uint64_t sec2tsc(uint64_t sec);
+uint64_t msec2tsc(uint64_t msec);
+uint64_t usec2tsc(uint64_t usec);
+uint64_t nsec2tsc(uint64_t nsec);
 
 #endif /* ROS_KERN_TIME_H */