mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 11:11:08 +01:00
Simplify MBEDTLS_TIMING_C to use mbedtls_ms_time()
Don't ship two slightly different wheels. This reduces our platform adherence by using only `clock_gettime()` in the library and not `gettimeofday()` as well. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -23,11 +23,13 @@ extern "C" {
|
||||
// Regular implementation
|
||||
//
|
||||
|
||||
#include <mbedtls/platform_time.h>
|
||||
|
||||
/**
|
||||
* \brief timer structure
|
||||
*/
|
||||
struct mbedtls_timing_hr_time {
|
||||
uint64_t MBEDTLS_PRIVATE(opaque)[4];
|
||||
mbedtls_ms_time_t MBEDTLS_PRIVATE(ms);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user