Rule Definition
Various aspects of ctime are implementation-defined or unspecified, such as the formats of times.
Remediation
Ensure that you do not use implementation-dependent library
You can try an alternative library such as:
Violation Code Sample
#include <ctime>
void f ( )
{
clock ( );
} // Non-compliant
Reference
MISRA C++, 18-0-4: The time handling functions of library shall not be used.
Related Technologies
Technical Criterion
CWE-758 - Reliance on Undefined, Unspecified, or Implementation-Defined Behavior
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.