/* * PSP Software Development Kit - http://www.pspdev.org * ----------------------------------------------------------------------- * Licensed under the BSD license, see LICENSE in PSPSDK root for details. * * time.h * * Copyright (c) 2002-2004 PS2DEV * Copyright (c) 2005 Marcus R. Brown * Copyright (c) 2005 James Forshaw * Copyright (c) 2005 John Kelley * * $Id: time.h 1095 2005-09-27 21:02:16Z jim $ */ #ifndef _TIME_H #define _TIME_H #include #ifndef __clock_t_defined typedef unsigned long clock_t; #define __clock_t_defined #endif #ifndef __time_t_defined typedef unsigned long time_t; #define __time_t_defined #endif struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; }; #ifdef __cplusplus extern "C" { #endif clock_t clock(); time_t time(time_t *t); // to be implemented... double difftime(time_t time1, time_t time0); time_t mktime(struct tm *timeptr); char *asctime(const struct tm *timeptr); char *ctime(const time_t *timep); struct tm *gmtime(const time_t *timep); struct tm *localtime(const time_t *timep); size_t strftime(char *s, size_t max, const char *format, const struct tm *tm); #ifdef __cplusplus } #endif #endif // TIME_H