00001
00027 #ifndef POLARSSL_TIMING_H
00028 #define POLARSSL_TIMING_H
00029
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033
00037 struct hr_time
00038 {
00039 unsigned char opaque[32];
00040 };
00041
00042 extern volatile int alarmed;
00043
00047 unsigned long hardclock( void );
00048
00055 unsigned long get_timer( struct hr_time *val, int reset );
00056
00062 void set_alarm( int seconds );
00063
00069 void m_sleep( int milliseconds );
00070
00071 #ifdef __cplusplus
00072 }
00073 #endif
00074
00075 #endif