/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* $Id$ $Date$ * * PCR time.h ANSI C 4.12 */ /* Chauser, October 28, 1993 3:29 pm PDT */ #ifndef __PCR_time_h #define __PCR_time_h #include #include /* Check for hosts ilike Sun, not ANSI-conforming */ #if !defined(CLOCKS_PER_SEC) # define CLOCKS_PER_SEC 60 #endif #if !defined(NULL) # define NULL 0 #endif extern clock_t PCR_clock(void); extern double PCR_difftime(time_t time1, time_t time0); extern time_t PCR_mktime(struct tm *tp); extern char * PCR_asctime(const struct tm *t); extern char * PCR_ctime(const time_t *t); extern struct tm * PCR_gmtime(const time_t *t); extern struct tm * PCR_localtime(const time_t *t); extern size_t PCR_strftime(char *s, size_t maxsize, const char *format, const struct tm *timeptr); #ifndef PCR_NO_RENAME # undef clock # undef difftime # undef mktime # undef asctime # undef ctime # undef gmtime # undef localtime # undef strftime # define clock PCR_clock # define difftime PCR_difftime # define mktime PCR_mktime # define asctime PCR_asctime # define ctime PCR_ctime # define gmtime PCR_gmtime # define localtime PCR_localtime # define strftime PCR_strftime #endif /* !PCR_NO_RENAME */ #endif /* !__PCR_time_h */ /* $Log$ */