diff options
author | dzwdz | 2023-08-14 18:51:07 +0200 |
---|---|---|
committer | dzwdz | 2023-08-14 18:51:07 +0200 |
commit | 642b5fb0007b64c77d186fcb018d571152ee1d47 (patch) | |
tree | 1c466461f3602d306be309a053edae558ef2568e /src/user/lib/include/time.h | |
parent | 8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff) |
reorganization: first steps
Diffstat (limited to 'src/user/lib/include/time.h')
-rw-r--r-- | src/user/lib/include/time.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/user/lib/include/time.h b/src/user/lib/include/time.h deleted file mode 100644 index 5d03664..0000000 --- a/src/user/lib/include/time.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once -#include <sys/types.h> - -#define CLOCKS_PER_SEC 1000000 - -struct tm { - int tm_sec; /* Seconds [0,60]. */ - int tm_min; /* Minutes [0,59]. */ - int tm_hour; /* Hour [0,23]. */ - int tm_mday; /* Day of month [1,31]. */ - int tm_mon; /* Month of year [0,11]. */ - int tm_year; /* Years since 1900. */ - int tm_wday; /* Day of week [0,6] (Sunday =0). */ - int tm_yday; /* Day of year [0,365]. */ - int tm_isdst; /* Daylight Savings flag. */ -}; - -struct timespec { - time_t tv_sec; - long long tv_nsec; -}; - -time_t time(time_t *tloc); -clock_t clock(void); - -struct tm *gmtime(const time_t *timer); -struct tm *localtime(const time_t *timer); -time_t mktime(struct tm *timeptr); - -double difftime(time_t time1, time_t time0); - -size_t strftime( - char *restrict s, size_t maxsize, - const char *restrict format, const struct tm *restrict timeptr); |