LibC: Add struct timespec to time.h

This commit is contained in:
Robin Burchell 2019-05-16 13:44:44 +02:00 committed by Andreas Kling
commit 6f73a549fa
Notes: sideshowbarker 2024-07-19 14:06:31 +09:00

View file

@ -38,5 +38,11 @@ size_t strftime(char* s, size_t max, const char* format, const struct tm*);
#define difftime(t1,t0) (double)(t1 - t0)
// This is c++11+, but we have no macro for that now.
struct timespec {
time_t tv_sec;
long tv_nsec;
};
__END_DECLS