libc: Provide a definition for timeval
This commit is contained in:
parent
1c35eabb2b
commit
211c76f920
@ -21,6 +21,13 @@ struct tm
|
|||||||
const char* tm_zone;
|
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.
|
#define CLOCKS_PER_SEC 1000 // Number of clock_t per second.
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user