ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/time.C
(Generate patch)

Comparing deliantra/server/common/time.C (file contents):
Revision 1.5 by root, Thu Sep 14 22:34:00 2006 UTC vs.
Revision 1.7 by root, Wed Dec 13 02:55:50 2006 UTC

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
135long
136seconds (void)
137{
138 struct timeval now;
139
140 (void) GETTIMEOFDAY (&now);
141 return now.tv_sec;
142}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines