libc: Provide a definition for timeval

This commit is contained in:
apio 2022-10-27 07:55:02 +02:00
parent 1c35eabb2b
commit 211c76f920

View File

@ -21,6 +21,13 @@ struct tm
const char* tm_zone;
};
// Captures elapsed time.
struct timeval
{
time_t tv_sec;
unsigned long tv_usec;
};
#define CLOCKS_PER_SEC 1000 // Number of clock_t per second.
#ifdef __cplusplus