akaros/kern/include/ros/time.h
<<
>>
Prefs
   1#pragma once
   2
   3/* (newlib) Time Value Specification Structures, P1003.1b-1993, p. 261 */
   4typedef long time_t; /* TODO: this is fucked.  Thanks POSIX. */
   5
   6struct timespec {
   7        time_t  tv_sec;   /* Seconds */
   8        long    tv_nsec;  /* Nanoseconds */
   9};
  10
  11struct timeval {
  12        time_t tv_sec;  /* seconds */
  13        time_t tv_usec; /* microseconds */
  14};
  15