00001
00023 #ifndef POLARSSL_TIMING_H
00024 #define POLARSSL_TIMING_H
00025
00029 struct hr_time
00030 {
00031 unsigned char opaque[32];
00032 };
00033
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037
00038 extern volatile int alarmed;
00039
00043 unsigned long hardclock( void );
00044
00051 unsigned long get_timer( struct hr_time *val, int reset );
00052
00058 void set_alarm( int seconds );
00059
00065 void m_sleep( int milliseconds );
00066
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070
00071 #endif