PolarSSL v1.3.4
timing.h
Go to the documentation of this file.
1 
27 #ifndef POLARSSL_TIMING_H
28 #define POLARSSL_TIMING_H
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
37 struct hr_time
38 {
39  unsigned char opaque[32];
40 };
41 
42 extern volatile int alarmed;
43 
47 unsigned long hardclock( void );
48 
55 unsigned long get_timer( struct hr_time *val, int reset );
56 
62 void set_alarm( int seconds );
63 
69 void m_sleep( int milliseconds );
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* timing.h */
volatile int alarmed
unsigned long get_timer(struct hr_time *val, int reset)
Return the elapsed time in milliseconds.
void set_alarm(int seconds)
Setup an alarm clock.
unsigned long hardclock(void)
Return the CPU cycle counter value.
void m_sleep(int milliseconds)
Sleep for a certain amount of time.
unsigned char opaque[32]
Definition: timing.h:39
timer structure
Definition: timing.h:37