MISRA and AUTOSAR do not allow us to use the time() function of <ctime> (and <time.h>).
Rule 18-0-4: The time handling functions of library
<ctime>shall not be used.
Is there an alternative to the time() function in C++?
There is the time library <chrono>. But there I didn't find a function that returns the current time like time(). Or am I missing something?