mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 13:19:02 +00:00
LibC: Add struct timespec to time.h
This commit is contained in:
parent
4dad585609
commit
6f73a549fa
Notes:
sideshowbarker
2024-07-19 14:06:31 +09:00
Author: https://github.com/rburchell
Commit: 6f73a549fa
Pull-request: https://github.com/SerenityOS/serenity/pull/45
Reviewed-by: https://github.com/awesomekling
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue