summaryrefslogtreecommitdiffstats
path: root/src/include/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/time.h')
-rw-r--r--src/include/time.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/include/time.h b/src/include/time.h
new file mode 100644
index 0000000..d0a765d
--- /dev/null
+++ b/src/include/time.h
@@ -0,0 +1,42 @@
1#ifndef _TIME_H
2#define _TIME_H
3
4#ifndef _TIME_T
5#define _TIME_T
6typedef long time_t;
7#endif
8
9#ifndef _SIZE_T
10#define _SIZE_T
11typedef unsigned int size_t;
12#endif
13
14#define CLOCKS_PER_SEC 100
15
16typedef long clock_t;
17
18struct tm {
19 int tm_sec;
20 int tm_min;
21 int tm_hour;
22 int tm_mday;
23 int tm_mon;
24 int tm_year;
25 int tm_wday;
26 int tm_yday;
27 int tm_isdst;
28};
29
30clock_t clock(void);
31time_t time(time_t * tp);
32double difftime(time_t time2, time_t time1);
33time_t mktime(struct tm * tp);
34
35char * asctime(const struct tm * tp);
36char * ctime(const time_t * tp);
37struct tm * gmtime(const time_t *tp);
38struct tm *localtime(const time_t * tp);
39size_t strftime(char * s, size_t smax, const char * fmt, const struct tm * tp);
40void tzset(void);
41
42#endif