time.h

00001 /*  wcecompat: Windows CE C Runtime Library "compatibility" library.
00002  *
00003  *  Copyright (C) 2001-2002 Essemer Pty Ltd.  All rights reserved.
00004  *  http://www.essemer.com.au/
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Lesser General Public
00008  *  License as published by the Free Software Foundation; either
00009  *  version 2.1 of the License, or (at your option) any later version.
00010  *
00011  *  This library is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  Lesser General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU Lesser General Public
00017  *  License along with this library; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 
00022 #ifndef __wcecompat__TIME_H__
00023 #define __wcecompat__TIME_H__
00024 
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 
00031 #include <stdlib.h>             // time_t defined there
00032 //typedef int time_t;
00033 
00034 typedef unsigned long clock_t;
00035 #define CLOCKS_PER_SEC (1000)
00036 
00037 time_t time(time_t* t);
00038 clock_t __cdecl clock(void);
00039 
00040 struct tm
00041 {
00042         int tm_sec;
00043         int tm_min;
00044         int tm_hour;
00045         int tm_mday;
00046         int tm_mon;
00047         int tm_year;
00048         int tm_wday;
00049         int tm_yday;
00050         int tm_isdst;
00051 };
00052 
00053 struct tm* localtime(const time_t* clock);
00054 struct tm * __cdecl gmtime(const time_t *clock);
00055 
00056 
00057 #ifdef __cplusplus
00058 }
00059 #endif
00060 
00061 
00062 #endif // __wcecompat__TIME_H__

Generated on Mon Jun 5 10:20:48 2006 for Intelligence.kdevelop by  doxygen 1.4.6