Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

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