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.4 by root, Sun Sep 10 16:00:23 2006 UTC vs.
Revision 1.7 by root, Wed Dec 13 02:55:50 2006 UTC

1
2/*
3 * static char *rcsid_time_c =
4 * "$Id: time.C,v 1.4 2006/09/10 16:00:23 root Exp $";
5 */
6
7/* 1/*
8 CrossFire, A Multiplayer game for X-windows 2 CrossFire, A Multiplayer game for X-windows
9 3
10 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 4 Copyright (C) 2002 Mark Wedel & Crossfire Development Team
11 Copyright (C) 1992 Frank Tore Johansen 5 Copyright (C) 1992 Frank Tore Johansen
22 16
23 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software 18 along with this program; if not, write to the Free Software
25 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 20
27 The authors can be reached via e-mail at crossfire-devel@real-time.com 21 The authors can be reached via e-mail at <crossfire@schmorp.de>
28*/ 22*/
29 23
30#include <global.h> 24#include <global.h>
31#include <funcpoint.h> 25#include <funcpoint.h>
32#include <tod.h> 26#include <tod.h>
33 27
34#ifndef WIN32 /* ---win32 exclude header */
35# include <stdio.h> 28#include <stdio.h>
36# include <sys/types.h> 29#include <sys/types.h>
37# include <sys/time.h> 30#include <sys/time.h>
38#endif /* win32 */
39 31
40/* 32/*
41 * Gloabal variables: 33 * Gloabal variables:
42 */ 34 */
43 35
136 128
137 sprintf (errmsg, "Time of Year: %s", season_name[tod.season]); 129 sprintf (errmsg, "Time of Year: %s", season_name[tod.season]);
138 new_draw_info (NDI_UNIQUE, 0, op, errmsg); 130 new_draw_info (NDI_UNIQUE, 0, op, errmsg);
139} 131}
140 132
141long
142seconds (void)
143{
144 struct timeval now;
145
146 (void) GETTIMEOFDAY (&now);
147 return now.tv_sec;
148}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines