1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:07:45 +00:00

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
parent 4dad585609
commit 6f73a549fa

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) #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 __END_DECLS