… | |
… | |
23 | |
23 | |
24 | #include <global.h> |
24 | #include <global.h> |
25 | #include <funcpoint.h> |
25 | #include <funcpoint.h> |
26 | #include <tod.h> |
26 | #include <tod.h> |
27 | |
27 | |
28 | #ifndef WIN32 /* ---win32 exclude header */ |
|
|
29 | # include <stdio.h> |
28 | #include <stdio.h> |
30 | # include <sys/types.h> |
29 | #include <sys/types.h> |
31 | # include <sys/time.h> |
30 | #include <sys/time.h> |
32 | #endif /* win32 */ |
|
|
33 | |
31 | |
34 | /* |
32 | /* |
35 | * Gloabal variables: |
33 | * Gloabal variables: |
36 | */ |
34 | */ |
37 | |
35 | |
… | |
… | |
130 | |
128 | |
131 | sprintf (errmsg, "Time of Year: %s", season_name[tod.season]); |
129 | sprintf (errmsg, "Time of Year: %s", season_name[tod.season]); |
132 | new_draw_info (NDI_UNIQUE, 0, op, errmsg); |
130 | new_draw_info (NDI_UNIQUE, 0, op, errmsg); |
133 | } |
131 | } |
134 | |
132 | |
135 | long |
|
|
136 | seconds (void) |
|
|
137 | { |
|
|
138 | struct timeval now; |
|
|
139 | |
|
|
140 | (void) GETTIMEOFDAY (&now); |
|
|
141 | return now.tv_sec; |
|
|
142 | } |
|
|