|
RetroArch
|
#include "mbedtls/config.h"#include "mbedtls/platform.h"#include "mbedtls/timing.h"#include <unistd.h>#include <sys/types.h>#include <sys/time.h>#include <signal.h>#include <time.h>Classes | |
| struct | _hr_time |
Macros | |
| #define | asm __asm |
| #define | HAVE_HARDCLOCK |
| #define | FAIL |
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... | |
| static void | sighandler (int signum) |
| 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... | |
| static void | busy_msleep (unsigned long msec) |
| int | mbedtls_timing_self_test (int verbose) |
| Checkup routine. More... | |
Variables | |
| static int | hardclock_init = 0 |
| static struct timeval | tv_init |
| volatile int | mbedtls_timing_alarmed = 0 |
| #define asm __asm |
| #define FAIL |
| #define HAVE_HARDCLOCK |
|
static |
| void mbedtls_set_alarm | ( | int | seconds | ) |
Setup an alarm clock.
| seconds | delay before the "mbedtls_timing_alarmed" flag is set |
| int mbedtls_timing_get_delay | ( | void * | data | ) |
Get the status of delays (Memory helper: number of delays passed.)
| data | Pointer to timing data Must point to a valid mbedtls_timing_delay_context struct. |
| unsigned long mbedtls_timing_get_timer | ( | struct mbedtls_timing_hr_time * | val, |
| int | reset | ||
| ) |
Return the elapsed time in milliseconds.
| val | points to a timer structure |
| reset | if set to 1, the timer is restarted |
| unsigned long mbedtls_timing_hardclock | ( | void | ) |
Return the CPU cycle counter value.
| int mbedtls_timing_self_test | ( | int | verbose | ) |
Checkup routine.
Set a pair of delays to watch (See mbedtls_timing_get_delay().)
| data | Pointer to timing data Must point to a valid mbedtls_timing_delay_context struct. |
| int_ms | First (intermediate) delay in milliseconds. |
| fin_ms | Second (final) delay in milliseconds. Pass 0 to cancel the current delay. |
|
static |
|
static |
| volatile int mbedtls_timing_alarmed = 0 |
|
static |
1.8.15