time.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  * time.h
00007  *
00008  * Copyright (c) 2002-2004 PS2DEV
00009  * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
00010  * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
00011  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
00012  *
00013  * $Id: time.h 1095 2005-09-27 21:02:16Z jim $
00014  */
00015 
00016 #ifndef _TIME_H
00017 #define _TIME_H
00018 
00019 #include <stddef.h>
00020 
00021 #ifndef __clock_t_defined
00022 typedef unsigned long clock_t;
00023 #define __clock_t_defined
00024 #endif
00025 
00026 #ifndef __time_t_defined
00027 typedef unsigned long time_t;
00028 #define __time_t_defined
00029 #endif
00030 
00031 struct tm
00032 {
00033   int   tm_sec;
00034   int   tm_min;
00035   int   tm_hour;
00036   int   tm_mday;
00037   int   tm_mon;
00038   int   tm_year;
00039   int   tm_wday;
00040   int   tm_yday;
00041   int   tm_isdst;
00042 };
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047 
00048 clock_t clock();
00049 time_t time(time_t *t);
00050 
00051 // to be implemented...
00052 double difftime(time_t time1, time_t time0);
00053 time_t mktime(struct tm *timeptr);
00054 char *asctime(const struct tm *timeptr);
00055 char *ctime(const time_t *timep);
00056 struct tm *gmtime(const time_t *timep);
00057 struct tm *localtime(const time_t *timep);
00058 size_t strftime(char *s, size_t max, const char *format, const struct tm *tm);
00059 
00060 #ifdef __cplusplus
00061 }
00062 #endif
00063 
00064 #endif  // TIME_H

Generated on Tue Jul 24 15:21:23 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2