Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #ifndef _TIME_H
  2. #define _TIME_H
  3.  
  4. typedef unsigned long int clock_t;
  5. typedef unsigned long int time_t;
  6. //#define clock() get_tick_count()
  7. #define CLOCKS_PER_SEC 100
  8.  
  9. struct tm {
  10.     int tm_sec;      /*     seconds after the minute        0-61*/
  11.     int tm_min;      /* minutes after the hour      0-59 */
  12.     int tm_hour; /* hours since midnight    0-23 */
  13.     int tm_mday; /* day of the month        1-31 */
  14.     int tm_mon;      /* months since January        0-11 */
  15.     int tm_year; /* years since 1900 */    
  16.     int tm_wday; /* days since Sunday       0-6             */
  17.     int tm_yday; /* days since January 1    0-365   */
  18.     int tm_isdst; /* Daylight Saving Time flag      */
  19. };
  20.  
  21. time_t mktime(struct tm * timeptr);
  22. time_t time(time_t* timer);
  23. struct tm * localtime(const time_t * timer); /* non-standard!  ignore parameter and return just time now, not generate tm_isdst, tm_yday, tm_wday == -1  */
  24. double difftime(time_t end, time_t beginning);
  25.  
  26. extern struct tm __buffertime;
  27.  
  28. #endif
  29.  
  30.