Subversion Repositories Kolibri OS

Rev

Rev 8793 | Rev 9810 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8687 turbocat 1
#ifndef _TIME_H_
2
#define _TIME_H_
3
 
4
#include 
5
 
6
typedef unsigned long int clock_t;
7
typedef unsigned long int time_t;
9766 turbocat 8
#define clock()        _ksys_get_clock()
8687 turbocat 9
#define CLOCKS_PER_SEC 100
10
 
8787 turbocat 11
#pragma pack(push, 1)
8687 turbocat 12
struct tm {
9766 turbocat 13
    int tm_sec;   /* seconds after the minute	0-61*/
14
    int tm_min;   /* minutes after the hour	0-59 */
15
    int tm_hour;  /* hours since midnight	0-23 */
16
    int tm_mday;  /* day of the month	1-31 */
17
    int tm_mon;   /* months since January	0-11 */
18
    int tm_year;  /* years since 1900 */
19
    int tm_wday;  /* days since Sunday	0-6		*/
20
    int tm_yday;  /* days since January 1	0-365 	*/
21
    int tm_isdst; /* Daylight Saving Time flag	*/
8687 turbocat 22
};
8787 turbocat 23
#pragma pack(pop)
8687 turbocat 24
 
9766 turbocat 25
extern time_t _FUNC(mktime)(struct tm* timeptr);
8687 turbocat 26
extern time_t _FUNC(time)(time_t* timer);
9766 turbocat 27
extern struct tm* _FUNC(localtime)(const time_t* timer);
8687 turbocat 28
extern double _FUNC(difftime)(time_t end, time_t beginning);
9766 turbocat 29
extern char* _FUNC(asctime)(const struct tm* tm);
8687 turbocat 30
 
31
#endif