mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 14:22:21 +01:00
Merge pull request #9228 from LinuxJedi/stm32-rtc
Fix STM32 benchmark endless loop after 1 hour
This commit is contained in:
@@ -1830,7 +1830,7 @@ double current_time(void)
|
||||
(void) date;
|
||||
|
||||
/* return seconds.milliseconds */
|
||||
return ((double) time.Hours * 24) + ((double) time.Minutes * 60)
|
||||
return ((double) time.Hours * 3600) + ((double) time.Minutes * 60)
|
||||
+ (double) time.Seconds + ((double) subsec / 1000);
|
||||
}
|
||||
#endif /* HAL_RTC_MODULE_ENABLED */
|
||||
|
||||
Reference in New Issue
Block a user