mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
@ -240,7 +240,7 @@ unsigned long mbedtls_timing_get_timer(struct mbedtls_timing_hr_time *val, int r
|
||||
|
||||
if (reset) {
|
||||
QueryPerformanceCounter(&t->start);
|
||||
memcpy(val, t, sizeof(struct _hr_time));
|
||||
memcpy(val, val_aligned, sizeof(struct mbedtls_timing_hr_time));
|
||||
return 0;
|
||||
} else {
|
||||
unsigned long delta;
|
||||
@ -290,7 +290,7 @@ unsigned long mbedtls_timing_get_timer(struct mbedtls_timing_hr_time *val, int r
|
||||
|
||||
if (reset) {
|
||||
gettimeofday(&t->start, NULL);
|
||||
memcpy(val, t, sizeof(struct _hr_time));
|
||||
memcpy(val, val_aligned, sizeof(struct mbedtls_timing_hr_time));
|
||||
return 0;
|
||||
} else {
|
||||
unsigned long delta;
|
||||
|
Reference in New Issue
Block a user