23 #ifndef MBEDTLS_TIMING_H
24 #define MBEDTLS_TIMING_H
26 #if !defined(MBEDTLS_CONFIG_FILE)
29 #include MBEDTLS_CONFIG_FILE
32 #if !defined(MBEDTLS_TIMING_ALT)
128 #if defined(MBEDTLS_SELF_TEST)
134 int mbedtls_timing_self_test(
int verbose );
unsigned long mbedtls_timing_hardclock(void)
Return the CPU cycle counter value.
Compatibility names (set of defines)
void mbedtls_timing_set_delay(void *data, uint32_t int_ms, uint32_t fin_ms)
Set a pair of delays to watch (See mbedtls_timing_get_delay().)
Portable interface to the CPU cycle counter.
Context for mbedtls_timing_set/get_delay()
volatile int mbedtls_timing_alarmed
void mbedtls_set_alarm(int seconds)
Setup an alarm clock.
unsigned long mbedtls_timing_get_timer(struct mbedtls_timing_hr_time *val, int reset)
Return the elapsed time in milliseconds.
int mbedtls_timing_get_delay(void *data)
Get the status of delays (Memory helper: number of delays passed.)