Files
RockOS/sysroot/usr/include/sys/time.h

21 lines
604 B
C
Raw Normal View History

#ifndef _SYS_TIME_H
#define _SYS_TIME_H
#include <sys/types.h>
// Represents an exact elapsed time signature
struct timeval {
time_t tv_sec; /* Seconds since Unix Epoch */
int32_t tv_usec; /* Microseconds component */
};
// Represents traditional timezone offsets (largely obsolete but required)
struct timezone {
int tz_minuteswest; /* Minutes west of Greenwich */
int tz_dsttime; /* Type of DST correction */
};
/* Prototype for time fetching system operation */
int gettimeofday(struct timeval *restrict tv, void *restrict tz);
#endif /* _SYS_TIME_H */