| 12345678910111213141516171819202122232425262728293031323334 |
- #ifndef H_TIME_H
- #define H_TIME_H
- #include "hdef.h"
- #include "hplatform.h"
- #include <time.h>
- typedef struct datetime_s{
- int year;
- int month;
- int day;
- int hour;
- int min;
- int sec;
- int ms;
- }datetime_t;
- void msleep(unsigned long ms);
- #ifdef _MSC_VER
- inline void sleep(unsigned int s){
- Sleep(s*1000);
- }
- #endif
- uint64 gettick();
- int month_atoi(const char* month);
- const char* month_itoa(int month);
- datetime_t get_datetime();
- datetime_t get_compile_datetime();
- #endif // H_TIME_H
|