]> pd.if.org Git - pdclib/blob - includes/time.h
Some cleanup.
[pdclib] / includes / time.h
1 // ----------------------------------------------------------------------------
2 // $Id$
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
7 // Date and time
8 // ----------------------------------------------------------------------------
9
10 #ifndef __TIME_H
11 #define __TIME_H __TIME_H
12
13 // ----------------------------------------------------------------------------
14 // MACROS
15
16 #define CLOCKS_PER_SEC // TODO
17 #define NULL           0
18
19 // ----------------------------------------------------------------------------
20 // TYPES
21
22 typedef clock_t;
23 typedef size_t;
24 typedef time_t;
25 struct tm;
26
27 // ----------------------------------------------------------------------------
28 // FUNCTIONS
29
30 char * asctime( const struct tm * tptr );
31 clock_t clock( void );
32 char * ctime( const time_t * tod );
33 double difftime( time_t t1, time_t t0 );
34 struct tm * gmtime( const time_t * tod );
35 struct tm * localtime( const time_t * tod );
36 time_t mktime( struct tm * tptr );
37 size_t strftime( char * restrict s, size_t n, const char * restrict format,
38                  const struct tm * restrict tptr );
39 time_t time( time_t * tod );
40
41 #endif // __TIME_H