Mbed OS Reference
Loading...
Searching...
No Matches
timing.h File Reference

Portable interface to timeouts and to the CPU cycle counter. More...

#include "mbedtls/config.h"
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  mbedtls_timing_hr_time
 timer structure More...
 
struct  mbedtls_timing_delay_context
 Context for mbedtls_timing_set/get_delay() More...
 

Typedefs

typedef struct mbedtls_timing_delay_context mbedtls_timing_delay_context
 Context for mbedtls_timing_set/get_delay() More...
 

Functions

unsigned long mbedtls_timing_hardclock (void)
 Return the CPU cycle counter value. More...
 
unsigned long mbedtls_timing_get_timer (struct mbedtls_timing_hr_time *val, int reset)
 Return the elapsed time in milliseconds. More...
 
void mbedtls_set_alarm (int seconds)
 Setup an alarm clock. More...
 
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().) More...
 
int mbedtls_timing_get_delay (void *data)
 Get the status of delays (Memory helper: number of delays passed.) More...
 

Detailed Description

Portable interface to timeouts and to the CPU cycle counter.

Definition in file timing.h.