27 #ifndef POLARSSL_TIMING_H
28 #define POLARSSL_TIMING_H
30 #if !defined(POLARSSL_CONFIG_FILE)
33 #include POLARSSL_CONFIG_FILE
36 #if !defined(POLARSSL_TIMING_ALT)
79 void m_sleep(
int milliseconds );
81 #if defined(POLARSSL_SELF_TEST)
95 #include "timing_alt.h"
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.
Configuration options (set of defines)
unsigned long hardclock(void)
Return the CPU cycle counter value.
void m_sleep(int milliseconds)
Sleep for a certain amount of time.
int timing_self_test(int verbose)
Checkup routine.