common/win32/time_w32.h

00001 /*
00002  * Copyright Ian Burnett 2005, 2006.
00003  *
00004  * This file is part of Ian's Interactive LCD controller (IILC).
00005  * 
00006  * IILC is free software; you can redistribute it and/or modify it under
00007  * the terms of the GNU General Public License as published by the Free
00008  * Software Foundation; either version 2 of the License, or (at your
00009  * option) any later version.
00010  *
00011  * IILC is distributed in the hope that it will be useful, but WITHOUT
00012  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00014  * for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License along
00017  * with IILC; if not, write to the Free Software Foundation, Inc.,
00018  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
00019  */
00020 
00021 #if !defined(__TIME_W32_H__)
00022 #define __TIME_W32_H__
00023 
00024 typedef long time_t;
00025 
00026 typedef long suseconds_t;
00027 
00028 typedef int clockid_t;
00029 
00030 struct timeval
00031 {
00032     time_t         tv_sec;   /*      seconds */
00033     suseconds_t    tv_usec;  /* microseconds */
00034 };
00035 
00036 struct timespec
00037 {
00038     time_t   tv_sec;   /*     seconds */
00039     long int tv_nsec;  /* nanoseconds */
00040 };
00041 
00042 struct timezone
00043 {
00044     int tz_minuteswest; /* minutes west of Greenwich */
00045     int tz_dsttime;     /* type of dst correction    */
00046 };
00047 
00048 int gettimeofday(struct timeval * tv,
00049                  struct timezone * tz);
00050 
00051 int clock_gettime(clockid_t clk_id,
00052                   struct timespec * tp);
00053 
00054 
00055 #define CLOCK_REALTIME 1
00056 
00057 
00058 #endif /* __TIME_W32_H__ */
00059 

Generated on Mon Jul 17 01:36:11 2006 for IILC by  doxygen 1.4.6