diff options
author | Robin Burchell <robin+git@viroteck.net> | 2019-05-16 13:44:44 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-16 14:03:49 +0200 |
commit | 6f73a549fa484268fad607ba7cea2e3e9d47327a (patch) | |
tree | 728e9396bcda6d042f79e509b052cbb025f159d9 | |
parent | 4dad585609e1a9a202f55f51c3e4beb44f968290 (diff) | |
download | serenity-6f73a549fa484268fad607ba7cea2e3e9d47327a.zip |
LibC: Add struct timespec to time.h
-rw-r--r-- | LibC/time.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/LibC/time.h b/LibC/time.h index 27a5c1cadc..3e02730ead 100644 --- a/LibC/time.h +++ b/LibC/time.h @@ -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 |