TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
time.h
Aller à la documentation de ce fichier.
1 
29 #ifndef _TIME_H_
30 #define _TIME_H_
31 
32 #include <sys/cdefs.h>
33 
34 __BEGIN_DECLS
35 
36 #include <sys/types.h>
37 
38 struct timeval {
39  long int tv_sec;
40  long int tv_usec;
41 };
42 
43 struct timespec {
44  long int tv_sec;
45  long int tv_nsec;
46 };
47 
48 typedef long int clock_t;
49 typedef long int time_t;
51 struct tm{
52  int tm_sec;
53  int tm_min;
54  int tm_hour;
55  int tm_mday;
56  int tm_mon;
57  int tm_year;
58  int tm_wday;
59  int tm_yday;
60  int tm_isdst;
61 };
62 
63 clock_t clock(void);
64 
65 double difftime(time_t time1, time_t time0);
66 
67 time_t mktime(struct tm *timeptr);
68 
69 time_t time(time_t *timer);
70 
71 char *asctime(const struct tm *timeptr);
72 
73 char *ctime(const time_t *timer);
74 
75 struct tm *gmtime(const time_t *timer);
76 
77 struct tm *localtime(const time_t *timer);
78 
79 /* NOT IMPLEMENTED
80 size_t strftime(char * s,
81  size_t maxsize,
82  const char * format,
83  const struct tm * timeptr);
84 */
85 
86 __END_DECLS
87 
88 #endif //_TIME_H_
int tm_min
Definition: clock.h:59
long int time_t
Definition: time.h:49
int tm_mday
Definition: clock.h:61
long int tv_nsec
Definition: clock.h:51
int tm_year
Definition: clock.h:63
long int tv_usec
Definition: clock.h:43
int tm_mon
Definition: clock.h:62
long int tv_sec
Definition: clock.h:42
Definition: clock.h:41
long int tv_sec
Definition: clock.h:50
Definition: clock.h:57
int tm_wday
Definition: clock.h:64
int tm_yday
Definition: clock.h:65
Definition: clock.h:49
int tm_sec
Definition: clock.h:58
long int clock_t
Definition: time.h:48
int tm_hour
Definition: clock.h:60
int tm_isdst
Definition: clock.h:66