#ifndef _PDCLIB_TIME_H
#define _PDCLIB_TIME_H _PDCLIB_TIME_H
#include "_PDCLIB_aux.h"
#include "_PDCLIB_int.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _PDCLIB_SIZE_T_DEFINED
#define _PDCLIB_SIZE_T_DEFINED _PDCLIB_SIZE_T_DEFINED
typedef _PDCLIB_size_t size_t;
#endif
#ifndef _PDCLIB_NULL_DEFINED
#define _PDCLIB_NULL_DEFINED _PDCLIB_NULL_DEFINED
#define NULL _PDCLIB_NULL
#endif
typedef _PDCLIB_time_t time_t;
typedef _PDCLIB_clock_t clock_t;
#define CLOCKS_PER_SEC _PDCLIB_CLOCKS_PER_SEC
#define TIME_UTC _PDCLIB_TIME_UTC
struct timespec
{
time_t tv_sec;
long tv_nsec;
};
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;
};
clock_t clock( void ) _PDCLIB_nothrow;
double difftime( time_t time1, time_t time0 ) _PDCLIB_nothrow;
time_t mktime( struct tm * timeptr ) _PDCLIB_nothrow;
time_t time( time_t * timer ) _PDCLIB_nothrow;
int timespec_get( struct timespec * ts, int base ) _PDCLIB_nothrow;
char * asctime( const struct tm * timeptr ) _PDCLIB_nothrow;
char * ctime( const time_t * timer ) _PDCLIB_nothrow;
struct tm * gmtime( const time_t * timer ) _PDCLIB_nothrow;
struct tm * localtime( const time_t * timer ) _PDCLIB_nothrow;
size_t strftime( char * _PDCLIB_restrict s, size_t maxsize, const char * _PDCLIB_restrict format, const struct tm * _PDCLIB_restrict timeptr );
#ifdef __cplusplus
}
#endif
#endif