mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:47:46 +00:00
LibC: Add struct timespec to time.h
This commit is contained in:
parent
4dad585609
commit
6f73a549fa
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)
|
#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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue